incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeanne Waldman (JIRA)" <adffaces-iss...@incubator.apache.org>
Subject [jira] Assigned: (ADFFACES-137) error in custom skinning: org\apache\myfaces\adfinternal\skin\SkinStyleSheetParserUtils.java method _getBaseURI()
Date Sat, 09 Sep 2006 00:06:24 GMT
     [ http://issues.apache.org/jira/browse/ADFFACES-137?page=all ]

Jeanne Waldman reassigned ADFFACES-137:
---------------------------------------

    Assignee: Jeanne Waldman

> error in custom skinning: org\apache\myfaces\adfinternal\skin\SkinStyleSheetParserUtils.java
method _getBaseURI()
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: ADFFACES-137
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-137
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>          Components: Skinning
>         Environment: XP, Tomcat Java 1.5
>            Reporter: Kenneth Dougan
>         Assigned To: Jeanne Waldman
>            Priority: Blocker
>
> When attempting to parse a custom skin .css file, there is an OutOfBoundsException. 
If there is a contextPath = "/iApp/an" and sourceName = "custom.css" and lastSepIndex resolves
to -1.  The code does not handle the case where lastSepIndex == 1.
> The method _getBaseURI() is currently:
>     StringBuffer buffer = new StringBuffer(contextPathLength + lastSepIndex + 1);
>     buffer.append(contextPath);
>     buffer.append("/");
>     buffer.append(sourceName.substring(0, lastSepIndex));
> but should be:
>     StringBuffer buffer = new StringBuffer(contextPathLength + lastSepIndex + 1);
>     buffer.append(contextPath);
>     buffer.append("/");
>     if (lastSepIndex > -1) {
>       buffer.append(sourceName.substring(0, lastSepIndex));
>     } else {
>       buffer.append(sourceName);
>     }

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message