Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.0-alpha-2
-
None
Description
encodeResourceURL currently only creates a context-path relative path when asked to encode a relative path before passing to the portlet container for encoding – however the portlet API requires this be a fully qualified path (i.e. include the ContextPath).
isAbsoluteURL doesn't properly test if the url is absolute or not – What it needs to do is only return true if the url starts with a valid scheme. I.e. the characters before the : don't contain any of the URI reserved characters. for example "javascript:;" currently claims it isn't "absolute" when it should be marked as it is.