jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34109] New: - <c:url> doesn't merge slashes at the boundary of "context" and "value"
Date Mon, 21 Mar 2005 16:26:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34109>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34109

           Summary: <c:url> doesn't merge slashes at the boundary of
                    "context" and "value"
           Product: Taglibs
           Version: 1.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Standard Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: geo@cuni.cz


Suppose a JSP contains an element like this:
<c:url context="/some/context/" value="/path/resource.do"/>

the generated URL will contain two consecutive slashes, where they're not
allowed:    "...some/context//path/resource.do".

Arguably such JSP is valid, as the context may end in '/', and the spec
clearly mandates the leading slash of the value.  The bug is non-trivial
to work around (by omitting the first one of the two slashes from the JSP)
in some cases, because with context="/" the trailing slash is mandatory, and the
context may be introduced as a parameter so as to be both used in c:url
in some places and directly concatenated with other path components in others.

Part of this behavior has already been fixed as a result of bug report 22860.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message