Jump to content
We've recently updated our Privacy Statement, available here ×

PUT a reportUnit through REST fails - Tomcat error


d.wendler
Go to solution Solved by d.wendler,

Recommended Posts

Dots represent rn

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 by 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>[/code]

Response:

HTTP/1.1 400 Bad Request.The request sent by the client was syntactically incorrect ().

What can be wrong?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...