Details

      Description

      Preconditions for master and ee-7.0.x:

      1. Define following properties in portal-ext.properties:
        locale.prepend.friendly.url.style=1
        locale.use.default.if.not.available=true
        locales=en_US,de_DE,fr_FR,it_IT,es_ES,pl_PL,ro_RO,nl_NL,hu_HU,pt_PT,el_GR,sv_SE,cs_CZ,bg_BG,sk_SK,da_DK,fi_FI,lt_LT,sl_SI,et_EE,hr_HR,ga_IE,lv_LV,mt_MT
        

      Preconditions for ee-6.2.x:

      1. Install portal with patch level between portal-92 and portal-124, both included.
      2. Define following properties in portal-ext.properties:
        locale.prepend.friendly.url.style=1
        locale.use.default.if.not.available=true
        locales=en_US,de_DE,fr_FR,it_IT,es_ES,pl_PL,ro_RO,nl_NL,hu_HU,pt_PT,el_GR,sv_SE,cs_CZ,bg_BG,sk_SK,da_DK,fi_FI,lt_LT,sl_SI,et_EE,hr_HR,ga_IE,lv_LV,mt_MT
        

      Steps to reproduce:

      1. Configure 'Test' superuser with Language 'Spanish (Spain)'
      2. Add a site ('siteen') with Default Language 'English (United States)' and Current Language only 'English (United States)'. Add a page ('pageen') to this site.
      3. Add a site ('siteonu') with Default Language 'Spanish (Spain)' and Current Language all available (Chines, Hungarian, German and so on). Add a page ('pageonu') to this site.
      4. Logout

      Test A

      1. Clear browser cookies
      2. Enter URL http://localhost:8080/web/siteonu/pageonu

        Expected and observed behaviour:
        Browser displays the requested URL

      3. Enter URL http://localhost:8080/web/siteen/pageen

        Expected and observed behaviour:
        Browser displays the requested URL

      Test B

      1. Clear browser cookies
      2. Enter URL http://localhost:8080/es/web/siteonu/pageonu

        Expected and observed behaviour:
        Browser displays the requested URL

      3. Enter URL http://localhost:8080/web/siteen/pageen

        Expected behaviour:
        Browser displays the requested URL
        Observed behaviour:
        Browser displays an error (Chrome error: 'ERR_TOO_MANY_REDIRECTS'; Firefox error: 'The server is redirecting the request for this address in a way that will never complete')

        With Browser's Developer Tools, network traffic shows 301 -> 302 responses succession

      Test C

      1. Clear browser cookies
      2. Login as 'Test' user
      3. Enter URL http://localhost:8080/web/siteonu/pageonu

        Expected and observed behaviour:
        Browser displays the requested URL

      4. Enter URL http://localhost:8080/web/siteen/pageen

        Expected behaviour:
        Browser displays the requested URL
        Observed behaviour:
        URL is changed to http://localhost:8080/es/web/siteen/pageen
        Browser displays an error (Chrome error: 'ERR_TOO_MANY_REDIRECTS'; Firefox error: 'The server is redirecting the request for this address in a way that will never complete')

        With Browser's Developer Tools, network traffic shows 301 -> 302 responses succession

        Attachments

        1. pass 6.2.gif
          pass 6.2.gif
          1.26 MB
        2. passed 7.0.gif
          passed 7.0.gif
          1.91 MB
        3. passed master.gif
          passed master.gif
          2.10 MB

          Issue Links

            Activity

              People

              Assignee:
              steven.gao Steven Gao (Inactive)
              Reporter:
              sergio.alonso Sergio Alonso
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 42 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP10
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  7.1.X
                  Master