Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1369

LocaleMatcher does not negotiate propertly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2
    • None
    • * Cocoon Core
    • None
    • Operating System: Linux
      Platform: PC
    • 32560

    Description

      Trying to implement LocaleMatcher for forrest.
      given index.xml and index.es.xml and Accept-Language: es,en;q=0.5

      When the @negotiate=false works as expected the index.es.xml is displayed.

      But when using @negotiate=true index.xml is displayed, which is wrong. It should
      be index.es.xml.

      Added sitemap and files, if you have svn forrest installed it is easier to test:
      mkdir /var/tmp/fs; cd /var/tmp/fs;
      forrest seed;
      cd src/documentation; unzip i18ntest.zip

      Attachments

        Activity

          People

            Unassigned Unassigned
            cheche@apache.org Juan Jose Pablos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: