Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1232

Don't detect template from URL, when either of rewrite listeners failed

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.1-B2
    • Component/s: Url Processing
    • Labels:
      None
    • Change Log Group:
      Changed
    • Change Log Message:
      Failed rewrite listener now results in "404 - Page Not Found" during url parsing.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      In-Portal has advanced mod-rewrite url processing/generation system, that allows:

      1. multiple units to be involved in url processing, where each unit is responsible for a specific url part parsing only;
      2. single unit is responsible for whole url parsing.

      In either case unit must be able to tell (by looking at url) if url can be properly parsed or not. In case if unit can't parse the url a 404 error page must be displayed.

      I recently discovered, that a unit can't say back, that 404 page should be shown in case if url itself ends up with a path to a template. For example:

      • "/community_name/resource_type/resource_name.html" - shows page
      • "/community_name/resource_type/resource_name/path/to/template.html" - shows page, but should show 404 error
      • "/community_name/resource_type/resource_name/some/strange/stuff.html" - shows 404 error

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Dmitry Andrejev [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: