You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2005/03/21 17:26:41 UTC

DO NOT REPLY [Bug 34109] New: - doesn't merge slashes at the boundary of "context" and "value"

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