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

RESTlets fail to work with POST requests when the SavedRequestRestorer filter is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.8 RC2, 1.9 M1
    • 1.8 RC1
    • {Unused} Core
    • None

    Description

      Some part of the RESTlet or JAX-RS frameworks make use of request.getInputStream, instead of request.getParameter*, and in some containers (for example Jetty) using both getParameter and getInputStream is not possible, since getParameter consumes the input stream.

      A workaround is to manually extract the srid parameter from the query string, but this means that:

      • the srid cannot be used in POST requests, but in all current use cases GET is used anyway;
      • the regular expression used for this is pretty basic, so there might be some complex URLs that fail to be recognized.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: