portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Liao <jian.l...@gmail.com>
Subject Two issues about the new PathSessionResolver
Date Wed, 09 Nov 2005 03:58:07 GMT
Hi all,
I found a strange issue, when I navigate to css-demo.psml the css.jsp will
make a request to this path:
/content/blue-gradient/css/content/tigris/images/icon_*_sml.gif.

There is two issues here.
1. icon_status_sml.gif does not exist any more.(this request is caused by
\decorations\portlet\html\blue-gradient\css\style.css)

2. all the "/content/blue-gradient/css/content/tigris/images/icon_*_sml.gif"
request will be mapped to "/Public/content.psml" in PathSessionResolver for
the regular expression<http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html#sum>"/content.*".
Is that what PathSessionResolver expect?

All this will cause a java.lang.NullPointerException in
org.apache.portals.gems.file.FilePortlet.drain(FilePortlet.java:106)

If it intend to match the pattern such as "/content.*" files, the
regular-expression
should be like "/content\\.\\w*".

- Jian Liao

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message