[GeoNetwork-devel] [GeoNetwork opensource Developer website] #1153: UrlRewriteFilter url and Spring Security NullPointerException

#1153: UrlRewriteFilter url and Spring Security NullPointerException
-----------------------+----------------------------------------------------
Reporter: josegar74 | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC2
Keywords: |
-----------------------+----------------------------------------------------
Accessing a url of type "forward" defined in !UrlRewrite rules like:

http://localhost:8080/geonetwork/metadata/eng/aebc338c-d7cd-4b33-a63f-
c8b190696368.pdf

causes a !NullPointerException.

Seem related to the order of filters defined in {{{web.xml}}}. With this
type of URLs seem the springSecurityFilterChain is not executed.

Defining {{{springSecurityFilterChain}}} before {{{UrlRewriteFilter}}}
solves the issue.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1153&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#1153: UrlRewriteFilter url and Spring Security NullPointerException
------------------------+---------------------------------------------------
  Reporter: josegar74 | Owner: geonetwork-devel@…
      Type: defect | Status: closed
  Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC2
Resolution: fixed | Keywords:
------------------------+---------------------------------------------------
Changes (by josegar74):

  * status: new => closed
  * resolution: => fixed

Comment:

Committed in revision dd0476b228725f9445f640af412f036c1d7f2305

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1153#comment:1&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.