Sling
  1. Sling
  2. SLING-1974

Accept header issues in the Sling POST Servlet

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Servlets Post 2.1.0
    • Fix Version/s: None
    • Component/s: Servlets
    • Labels:
      None

      Description

      As of SLING-1336 the Sling POST Servlet can interpret the Accept request header to select what response content type to render.

      Unfortunately that handling seems broken as for an Accept header like (as generated by FireFox with the JSONovich plugin installed) :

      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8,application/json

      the JSON response might be selected but sometimes also text/html (we can observe both behaviours for different server platforms with our application).

      The Accept header should probably consider equivalent q values (as for text/html and application/json in the example) to solve the tie by selecting the first type list; thus text/html in this example.

      1. SLING-1974.patch
        3 kB
        Felix Meschberger

        Activity

        Gavin made changes -
        Workflow re-open possible,doc-test-required [ 12787817 ] no-reopen-closed,doc-test-required [ 12790640 ]
        Gavin made changes -
        Workflow no-reopen-closed,doc-test-required [ 12766208 ] re-open possible,doc-test-required [ 12787817 ]
        Gavin made changes -
        Workflow Copy of no-reopen-closed,doc-test-required [ 12762630 ] no-reopen-closed,doc-test-required [ 12766208 ]
        Gavin made changes -
        Workflow no-reopen-closed,doc-test-required [ 12545039 ] Copy of no-reopen-closed,doc-test-required [ 12762630 ]
        Felix Meschberger made changes -
        Fix Version/s Servlets Post 2.1.4 [ 12319641 ]
        Carsten Ziegeler made changes -
        Fix Version/s Servlets Post 2.1.4 [ 12319641 ]
        Fix Version/s Servlets Post 2.1.2 [ 12315287 ]
        Felix Meschberger made changes -
        Attachment SLING-1974.patch [ 12470759 ]
        Felix Meschberger made changes -
        Field Original Value New Value
        Fix Version/s Servlets Post 2.1.2 [ 12315287 ]
        Affects Version/s Servlets Post 2.1.0 [ 12314180 ]
        Component/s Servlets [ 12313028 ]
        Felix Meschberger created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Felix Meschberger
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development