Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.3.4
    • Fix Version/s: 1.2.4, 1.3.5
    • Component/s: Converters
    • Labels:
      None
    • Environment:
      Windows XP/Vista

      Description

      Automatic parsing of a POST-request with XML (application/xml) content into a domain instance fails with Grails v1.3.4. parseRequest ist properly set in UrlMappings. I've attached two sample projects (v1.3.3 and v1.3.4)
      Try to do da POST request with:

      Bar.xml
      <?xml version='1.0' encoding='UTF-8' ?><foo><bar>test</bar></foo>
      

        Activity

        Hide
        Atsuya Takagi added a comment -

        Any workaround?

        Show
        Atsuya Takagi added a comment - Any workaround?
        Hide
        Robert La Ferla added a comment -

        We ran into this problem as well and it's a showstopper for us.

        Show
        Robert La Ferla added a comment - We ran into this problem as well and it's a showstopper for us.
        Hide
        Burt Beckwith added a comment -

        Peter - could you take a look at this? It looks like http://github.com/grails/grails-core/commit/3a0e57a1cd847517796d8d8deaa1524364d11849 broke XML (and JSON) parsing since the request params that are stored by XMLParsingParameterCreationListener/JSONParsingParameterCreationListener are now discarded on the forward.

        Show
        Burt Beckwith added a comment - Peter - could you take a look at this? It looks like http://github.com/grails/grails-core/commit/3a0e57a1cd847517796d8d8deaa1524364d11849 broke XML (and JSON) parsing since the request params that are stored by XMLParsingParameterCreationListener/JSONParsingParameterCreationListener are now discarded on the forward.
        Hide
        Peter Ledbrook added a comment -

        That commit was reverted, so this is working in 1.2.4. It will also be in 1.3.5. I'll add a functional test to the Grails suite based on the attached project.

        Show
        Peter Ledbrook added a comment - That commit was reverted, so this is working in 1.2.4. It will also be in 1.3.5. I'll add a functional test to the Grails suite based on the attached project.
        Hide
        Peter Ledbrook added a comment -

        Added functional tests in the 1.3.x branch and the 1.2.x one.

        Show
        Peter Ledbrook added a comment - Added functional tests in the 1.3.x branch and the 1.2.x one .

          People

          • Assignee:
            Peter Ledbrook
            Reporter:
            Felix M.
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development