Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2805

Backport : ResolvedSiteMapItemImpl - throws NPE when proccessing url with _default_

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.26.09
    • 2.26.10
    • None
    • None

    Description

      Steps to reproduce:

      • Create a sitemap with a wildcard .
      • Add sitemap parameter with params (like ${1}) to the sitemap wildcard
      • In a browser type in url that matches the just created sitemap. Use for the wildcard default. Example: http://localhost:8080/site/test/_default_

      See attached a screenshot of an example how to setup the configuration and the stack trace.

      Actual output:
      500 error page because of the NPE

      Expected output:
      404 error page

      Workaround:
      Add redirect rule in Apache Httpd to redirect all the urls with default to a 404 error page

      Attachments

        1. fixed_hsttwo_2805.png
          fixed_hsttwo_2805.png
          104 kB
        2. setup.jpg
          setup.jpg
          112 kB
        3. stacktrace.txt
          3 kB

        Activity

          People

            jsheriff Junaidh Kadhar Sheriff
            rgerritsen Rutger Gerritsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: