portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sean Taylor <da...@bluesunrise.com>
Subject Re: Two issues about the new PathSessionResolver
Date Wed, 09 Nov 2005 08:09:18 GMT
James Liao wrote:
> 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)
>
Were they deleted?

> 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*".
> 
i renamed the directory to _content, bad choice of names (until content 
server is deprecated)

also removed the regex
that should clear it up, thanks

-- 
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message