i don't know how solve issue. request, changed formatting content-length not correct in sample:
put /jasperserver/rest/resource/reports/customers/3221/wasser1 http/1.1 host: 10.84.6.166:8080 accept: */* cookie: jsessionid=d170f2ea5110e4ada55515c8f1b4d68f x-http-method-override: put content-length: 1697 <resourcedescriptor isnew="true" name="wasser1" uristring="/reports/customers/3221/wasser1" wstype="reportunit"> <label> <!--[cdata[test_report(test.jrxml)]]--> </label> <description> <!--[cdata[wasser1 generated jasper.php through rest mon, 15 jul 2013 09:57:56 +0200]]--> </description> <resourceproperty name="prop_parent_folder"> <value> <!--[cdata[/reports/customers/3221]]--> </value> </resourceproperty> <resourceproperty name="prop_has_data"> <value> <!--[cdata[false]]--> </value> </resourceproperty> <resourceproperty name="prop_is_reference"> <value> <!--[cdata[false]]--> </value> </resourceproperty> <resourceproperty name="prop_resource_type"> <value> <!--[cdata[com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.reportunit]]--> </value> </resourceproperty> <resourceproperty name="prop_ru_always_propmt_controls"> <value> <!--[cdata[false]]--> </value> </resourceproperty> <resourceproperty name="prop_ru_controls_layout"> <value> <!--[cdata[1]]--> </value> </resourceproperty> <resourcedescriptor isnew="false" name="test02" uristring="/reports/customers/3221/test02" wstype="jrxml"> <label> <!--[cdata[test02 report]]--> </label> <description> <resourceproperty name="prop_parent_folder"> <value> <!--[cdata[/reports/customers/3221]]--> </value> </resourceproperty> <resourceproperty name="prop_has_data"> <value> <!--[cdata[true]]--> </value> </resourceproperty> <resourceproperty name="prop_is_reference"> <value> <!--[cdata[false]]--> </value> </resourceproperty> <resourceproperty name="prop_resource_type"> <value> <!--[cdata[com.jaspersoft.jasperserver.api.metadata.common.domain.fileresource]]--> </value> </resourceproperty> <resourceproperty name="prop_security_permission_mask"> <value> <!--[cdata[31]]--> </value> </resourceproperty> </description> </resourcedescriptor> </resourcedescriptor>
response:
http/1.1 400 bad request. request sent client syntactically incorrect ().
any idea?
i found out child resourcedescriptors references themselves,
so had add:
prop_ru_is_reference = true prop_ru_reference_uri = uristring
for work!
Comments
Post a Comment