Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20125

Siteaccess matching error when SA name is in the URL

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.0.0rc1
    • Component/s: Language
    • Labels:
      None
    • Environment:

      Operating System: Debian6
      PHP Version: 5.3.3
      Database and version: PostgreSQL (8.4.13) and Mysql
      Browser (and version): Firefox 17.0

      Description

      In a multilanguage (eng(United Kingdom) + fre(France) + nor(Bookmal)) installation, i have a "Module not found" when i create a folder in a language that is not the default one.

      Steps to reproduce

      - Make a webin (with or without content) installation;
      - Login into ENG siteaccess
      - In Eng: create a folder "News"
      - Change to French siteaccess
      - Login again (issue https://jira.ez.no/browse/EZP-20084?)
      - Create another folder: "News_fre"
      - Click "Send for Publishing"
       
      Here, it appears the screen shown in "image1.png" attached
      If i click "Modifier" or "Annuler", i have the "Module not found" screen
      

      The error occurs on PostgreSQl and Mysql.

      in var/log/error:

      [ Nov 21 2012 19:39:58 ] [192.168.2.67] index:
      Undefined module: 1-FR
      

      in Apache log:

      [Wed Nov 21 18:39:59 2012] [error] [client 192.168.2.67] Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Invalid field identifier 'intro' for content #58") in "eZDemoBundle::page_footer.html.twig" at line 4." at /var/www/ezp50/ezpublish/cache/prod/classes.php line 9299, referer: http://ezp5.paulo.cleverti.qa.ezpublish.no/fre/content/edit/61/1/fre-FR
      

        Issue Links

          Activity

          Hide
          Paulo Nunes (Inactive) added a comment - - edited

          After some research, we found that this might happen due same reason as https://jira.ez.no/browse/EZP-20126
          The "Module not found" happens when we create an object using http://<hostname>/<eng|fre|nor> instead of just using http://<hostname> (as in http://ezp5.paulo.cleverti.qa.ezpublish.no)

          Show
          Paulo Nunes (Inactive) added a comment - - edited After some research, we found that this might happen due same reason as https://jira.ez.no/browse/EZP-20126 The "Module not found" happens when we create an object using http://<hostname>/<eng|fre|nor> instead of just using http://<hostname> (as in http://ezp5.paulo.cleverti.qa.ezpublish.no )
          Hide
          Paulo Nunes (Inactive) added a comment -

          My ezpublish.yml

          ezpublish:
              siteaccess:
                  default_siteaccess: eng
                  list:
                      - ezwebin_site
                      - eng
                      - fre
                      - nor
                      - ezwebin_site_admin
                  groups:
                      ezwebin_site_clean_group:
                          - ezwebin_site
                          - eng
                          - fre
                          - nor
                          - ezwebin_site_admin
                  match:
                      URIElement: '1'
              system:
                  ezwebin_site_clean_group:
                      database:
                          type: pgsql
                          user: ezp
                          password: ezp
                          server: localhost
                          database_name: ezp
                      var_dir: var/ezwebin_site
                  eng:
                      legacy_mode: true
                      languages:
                          - eng-GB
                      image_variations:
                          small:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [100, 160] }
                          medium:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [200, 290] }
                          listitem:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [130, 190] }
                          articleimage:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [170, 350] }
                          articlethumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [70, 150] }
                          gallerythumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [105, 100] }
                          galleryline:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [70, 150] }
                          imagelarge:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [550, 730] }
                          large:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [360, 440] }
                          rss:
                              reference: null
                              filters:
                                  - { name: geometry/scale, params: [88, 31] }
                          logo:
                              reference: null
                              filters:
                                  - { name: geometry/scaleheight, params: [36] }
                          infoboximage:
                              reference: null
                              filters:
                                  - { name: geometry/scalewidth, params: [75] }
                          billboard:
                              reference: null
                              filters:
                                  - { name: geometry/scalewidth, params: [764] }
                          multiuploadthumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [100, 80] }
                  ezwebin_site_admin:
                      legacy_mode: true
                      languages:
                          - eng-GB
                          - fre-FR
                          - nor-NO
                      image_variations:
                          reference:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [600, 600] }
                          small:
                              reference: reference
                              filters:
                                  - { name: geometry/scaledownonly, params: [100, 100] }
                          tiny:
                              reference: reference
                              filters:
                                  - { name: geometry/scaledownonly, params: [30, 30] }
                          medium:
                              reference: reference
                              filters:
                                  - { name: geometry/scaledownonly, params: [200, 200] }
                          large:
                              reference: reference
                              filters:
                                  - { name: geometry/scaledownonly, params: [300, 300] }
                          rss:
                              reference: reference
                              filters:
                                  - { name: geometry/scale, params: [88, 31] }
                          multiuploadthumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [100, 80] }
                  ezwebin_site:
                      legacy_mode: true
                      languages:
                          - eng-GB
                          - fre-FR
                          - nor-NO
                      image_variations:
                          small:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [100, 160] }
                          medium:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [200, 290] }
                          listitem:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [130, 190] }
                          articleimage:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [170, 350] }
                          articlethumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [70, 150] }
                          gallerythumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [105, 100] }
                          galleryline:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [70, 150] }
                          imagelarge:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [550, 730] }
                          large:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [360, 440] }
                          rss:
                              reference: null
                              filters:
                                  - { name: geometry/scale, params: [88, 31] }
                          logo:
                              reference: null
                              filters:
                                  - { name: geometry/scaleheight, params: [36] }
                          infoboximage:
                              reference: null
                              filters:
                                  - { name: geometry/scalewidth, params: [75] }
                          billboard:
                              reference: null
                              filters:
                                  - { name: geometry/scalewidth, params: [764] }
                          multiuploadthumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [100, 80] }
                  fre:
                      legacy_mode: true
                      languages:
                          - fre-FR
                          - eng-GB
                      image_variations:
                          small:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [100, 160] }
                          medium:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [200, 290] }
                          listitem:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [130, 190] }
                          articleimage:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [170, 350] }
                          articlethumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [70, 150] }
                          gallerythumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [105, 100] }
                          galleryline:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [70, 150] }
                          imagelarge:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [550, 730] }
                          large:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [360, 440] }
                          rss:
                              reference: null
                              filters:
                                  - { name: geometry/scale, params: [88, 31] }
                          logo:
                              reference: null
                              filters:
                                  - { name: geometry/scaleheight, params: [36] }
                          infoboximage:
                              reference: null
                              filters:
                                  - { name: geometry/scalewidth, params: [75] }
                          billboard:
                              reference: null
                              filters:
                                  - { name: geometry/scalewidth, params: [764] }
                          multiuploadthumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [100, 80] }
                  nor:
                      legacy_mode: true
                      languages:
                          - nor-NO
                          - eng-GB
                      image_variations:
                          small:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [100, 160] }
                          medium:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [200, 290] }
                          listitem:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [130, 190] }
                          articleimage:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [170, 350] }
                          articlethumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [70, 150] }
                          gallerythumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [105, 100] }
                          galleryline:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [70, 150] }
                          imagelarge:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [550, 730] }
                          large:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [360, 440] }
                          rss:
                              reference: null
                              filters:
                                  - { name: geometry/scale, params: [88, 31] }
                          logo:
                              reference: null
                              filters:
                                  - { name: geometry/scaleheight, params: [36] }
                          infoboximage:
                              reference: null
                              filters:
                                  - { name: geometry/scalewidth, params: [75] }
                          billboard:
                              reference: null
                              filters:
                                  - { name: geometry/scalewidth, params: [764] }
                          multiuploadthumbnail:
                              reference: null
                              filters:
                                  - { name: geometry/scaledownonly, params: [100, 80] }
              imagemagick:
                  enabled: true
                  path: /usr/bin/convert
              http_cache:
                  purge_type: local
           

          Show
          Paulo Nunes (Inactive) added a comment - My ezpublish.yml ezpublish: siteaccess: default_siteaccess: eng list: - ezwebin_site - eng - fre - nor - ezwebin_site_admin groups: ezwebin_site_clean_group: - ezwebin_site - eng - fre - nor - ezwebin_site_admin match: URIElement: '1' system: ezwebin_site_clean_group: database: type: pgsql user: ezp password: ezp server: localhost database_name: ezp var_dir: var/ezwebin_site eng: legacy_mode: true languages: - eng-GB image_variations: small: reference: null filters: - { name: geometry/scaledownonly, params: [100, 160] } medium: reference: null filters: - { name: geometry/scaledownonly, params: [200, 290] } listitem: reference: null filters: - { name: geometry/scaledownonly, params: [130, 190] } articleimage: reference: null filters: - { name: geometry/scaledownonly, params: [170, 350] } articlethumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [70, 150] } gallerythumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [105, 100] } galleryline: reference: null filters: - { name: geometry/scaledownonly, params: [70, 150] } imagelarge: reference: null filters: - { name: geometry/scaledownonly, params: [550, 730] } large: reference: null filters: - { name: geometry/scaledownonly, params: [360, 440] } rss: reference: null filters: - { name: geometry/scale, params: [88, 31] } logo: reference: null filters: - { name: geometry/scaleheight, params: [36] } infoboximage: reference: null filters: - { name: geometry/scalewidth, params: [75] } billboard: reference: null filters: - { name: geometry/scalewidth, params: [764] } multiuploadthumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [100, 80] } ezwebin_site_admin: legacy_mode: true languages: - eng-GB - fre-FR - nor-NO image_variations: reference: reference: null filters: - { name: geometry/scaledownonly, params: [600, 600] } small: reference: reference filters: - { name: geometry/scaledownonly, params: [100, 100] } tiny: reference: reference filters: - { name: geometry/scaledownonly, params: [30, 30] } medium: reference: reference filters: - { name: geometry/scaledownonly, params: [200, 200] } large: reference: reference filters: - { name: geometry/scaledownonly, params: [300, 300] } rss: reference: reference filters: - { name: geometry/scale, params: [88, 31] } multiuploadthumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [100, 80] } ezwebin_site: legacy_mode: true languages: - eng-GB - fre-FR - nor-NO image_variations: small: reference: null filters: - { name: geometry/scaledownonly, params: [100, 160] } medium: reference: null filters: - { name: geometry/scaledownonly, params: [200, 290] } listitem: reference: null filters: - { name: geometry/scaledownonly, params: [130, 190] } articleimage: reference: null filters: - { name: geometry/scaledownonly, params: [170, 350] } articlethumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [70, 150] } gallerythumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [105, 100] } galleryline: reference: null filters: - { name: geometry/scaledownonly, params: [70, 150] } imagelarge: reference: null filters: - { name: geometry/scaledownonly, params: [550, 730] } large: reference: null filters: - { name: geometry/scaledownonly, params: [360, 440] } rss: reference: null filters: - { name: geometry/scale, params: [88, 31] } logo: reference: null filters: - { name: geometry/scaleheight, params: [36] } infoboximage: reference: null filters: - { name: geometry/scalewidth, params: [75] } billboard: reference: null filters: - { name: geometry/scalewidth, params: [764] } multiuploadthumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [100, 80] } fre: legacy_mode: true languages: - fre-FR - eng-GB image_variations: small: reference: null filters: - { name: geometry/scaledownonly, params: [100, 160] } medium: reference: null filters: - { name: geometry/scaledownonly, params: [200, 290] } listitem: reference: null filters: - { name: geometry/scaledownonly, params: [130, 190] } articleimage: reference: null filters: - { name: geometry/scaledownonly, params: [170, 350] } articlethumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [70, 150] } gallerythumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [105, 100] } galleryline: reference: null filters: - { name: geometry/scaledownonly, params: [70, 150] } imagelarge: reference: null filters: - { name: geometry/scaledownonly, params: [550, 730] } large: reference: null filters: - { name: geometry/scaledownonly, params: [360, 440] } rss: reference: null filters: - { name: geometry/scale, params: [88, 31] } logo: reference: null filters: - { name: geometry/scaleheight, params: [36] } infoboximage: reference: null filters: - { name: geometry/scalewidth, params: [75] } billboard: reference: null filters: - { name: geometry/scalewidth, params: [764] } multiuploadthumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [100, 80] } nor: legacy_mode: true languages: - nor-NO - eng-GB image_variations: small: reference: null filters: - { name: geometry/scaledownonly, params: [100, 160] } medium: reference: null filters: - { name: geometry/scaledownonly, params: [200, 290] } listitem: reference: null filters: - { name: geometry/scaledownonly, params: [130, 190] } articleimage: reference: null filters: - { name: geometry/scaledownonly, params: [170, 350] } articlethumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [70, 150] } gallerythumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [105, 100] } galleryline: reference: null filters: - { name: geometry/scaledownonly, params: [70, 150] } imagelarge: reference: null filters: - { name: geometry/scaledownonly, params: [550, 730] } large: reference: null filters: - { name: geometry/scaledownonly, params: [360, 440] } rss: reference: null filters: - { name: geometry/scale, params: [88, 31] } logo: reference: null filters: - { name: geometry/scaleheight, params: [36] } infoboximage: reference: null filters: - { name: geometry/scalewidth, params: [75] } billboard: reference: null filters: - { name: geometry/scalewidth, params: [764] } multiuploadthumbnail: reference: null filters: - { name: geometry/scaledownonly, params: [100, 80] } imagemagick: enabled: true path: /usr/bin/convert http_cache: purge_type: local  
          Show
          Damien Pobel (Inactive) added a comment - https://github.com/ezsystems/ezp-next/pull/153
          Show
          Damien Pobel (Inactive) added a comment - Fixed in ezp-next: master: http://github.com/ezsystems/ezp-next/commit/bf265d5f5f778cc6910b297891e0f01f3bb3972a
          Hide
          Damien Pobel (Inactive) added a comment -

          this commit introduced a regression, while using the url http://ezpublish5.loc/ezdemo_site_admin, you are redirected to http://ezpublish5.loc/ezdemo_site_admin/ezdemo_site_admin after begin logged in.

          Show
          Damien Pobel (Inactive) added a comment - this commit introduced a regression, while using the url http://ezpublish5.loc/ezdemo_site_admin , you are redirected to http://ezpublish5.loc/ezdemo_site_admin/ezdemo_site_admin after begin logged in.
          Show
          Damien Pobel (Inactive) added a comment - regression fixed in ezp-next: master: http://github.com/ezsystems/ezp-next/commit/542d6cab6c8f4dd9314259a1acb353ba10e7994d
          Hide
          Paulo Nunes (Inactive) added a comment -

          Tested again after latest fix and it's working.

          Show
          Paulo Nunes (Inactive) added a comment - Tested again after latest fix and it's working.

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours
                7h