You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Thomas Burns (JIRA)" <co...@jakarta.apache.org> on 2005/04/01 00:48:26 UTC

[jira] Created: (JELLY-208) JellyContext.getJellyContextURL() assumes slashes

JellyContext.getJellyContextURL() assumes slashes
-------------------------------------------------

         Key: JELLY-208
         URL: http://issues.apache.org/jira/browse/JELLY-208
     Project: jelly
        Type: Bug
    Versions: 1.0-RC1    
    Reporter: Thomas Burns


The method org.apache.commons.jelly.JellyContext.getJellyContextURL() (both the URL and InputSource version of this method) assumes that the supplied URL or InputSource.getSystemId() uses forward slashes as part of the URL or systemId.

Our system uses a custom URL protocol (or "scheme" in URL-lingo) that does not use slashes, and when the URL is used within Jelly (such as in the core import tag) this method fails due to the assumption that the URL must have at least one forward slash.  Also, this bug will appear if an http URL is specified that does not include any slashes (for example, if the web server was to serve a jelly script as its default page).

It should be noted that the "scheme-specific-part" (the path-portion of the URL) is defined by the scheme and need follow no specific layout requirements, such as the use of slashes as separators.

References:
URI RFC: http://www.faqs.org/rfcs/rfc2396.html
URL RFC: http://www.faqs.org/rfcs/rfc1738.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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