Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7736

Trying to change the parent with the REST service results in an error

    XMLWordPrintable

Details

    • regression
    • Unknown

    Description

      I am making a POST to

      http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/Spaces?method=PUT

      with the following headers (at least that's what firebug says)

      Accept	text/javascript, text/html, application/xml, text/xml, */*
      Accept-Encoding	gzip, deflate
      Accept-Language	en-us,en;q=0.5
      Cache-Control	no-cache
      Connection	keep-alive
      Content-Length	22
      Content-Type	application/x-www-form-urlencoded; charset=UTF-8
      Cookie	[...]
      Host	localhost:8080
      Pragma	no-cache
      Referer	http://localhost:8080/xwiki/bin/view/XWiki/HierarchyMacro
      User-Agent	Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0
      X-Prototype-Version	1.6.1
      X-Requested-With	XMLHttpRequest
      

      and I get a 500 server error as a response.

      I post this content

      parent=Main.SpaceIndex
      

      The very same code is working fine in xwiki 2.6.2 so this is a regression.

      I get this in the logs

      Apr 16, 2012 5:28:18 PM org.restlet.ext.jaxrs.internal.util.ExceptionHandler noMessageBodyWriter
      WARNING: No message body writer found for class class org.xwiki.rest.model.jaxb.Page, genericType class org.xwiki.rest.model.jaxb.Page; response media type should be: text/javascript; accepted media types are: [[text/javascript, text/html, application/xml, text/xml, */*]]
      

      Attachments

        Issue Links

          Activity

            People

              lucaa Anca Luca
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: