Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-178

Attempts to request multiple languages with a pipe should return an error instead of unpredictable results

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 2.1.1
    • 2.1
    • delivery
    • None
    • Saigon 139, Saigon 140
    • 5

    Description

      Retrieval of multiple languages in REST 2.1 is not implemented (yet). Still while the following three requests work correctly in the current one-language implementation (the third as if ignoring the |en-EN part)

      http://localhost:8080/magnoliaAuthor/.rest/ep/travel/about?lang=de
      http://localhost:8080/magnoliaAuthor/.rest/ep/travel/about?lang=de-DE
      http://localhost:8080/magnoliaAuthor/.rest/ep/travel/about?lang=de-DE|en-GB
      

      all throwing:

      "title": "Über uns"

      by analogy one would think that

      http://localhost:8080/magnoliaAuthor/.rest/ep/travel/about?lang=de|en
      

      will also work by ignoring the regionless |en part, but it returns:

      "title": "About"

      instead.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ngoc.nguyenthanh Ngoc Nguyenthanh
                mdrapela Martin Drápela
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 5.5h
                      5.5h