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

Don't break prioritized languages when fetching eZURLAliasML->getPath in different locale

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 5.2-beta1
    • None
    • Language
    • None

    Description

      Hi,
      I stumbled upon this bug by using ezpLanguageSwitcher to generate path for multiple siteaccesses.

      Path generation loops on parent nodes, sets temporarily prioritized languages array to wanted locales, fetches path elements in db then resets proritized languages.
      This works well until one of the parent nodes is not translated in any of the wanted locales : script breaks loop and returns found path elements without resetting prioritized languages, hence breaking further language related operations.

      Proposed fix : https://github.com/ezsystems/ezpublish-legacy/pull/381

      I believe this fix to be harmless, just resetting things straight but I wonder if loop break shouldn't return an empty path rather than a partial one when an ancestor node is not translated. I didn't go this far since I don't know if this method has anything to do with PathPrefix...

      Attachments

        Activity

          People

            Unassigned Unassigned
            bchoquet bchoquet
            Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 25 minutes
                25m