You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Marcus Brito (JIRA)" <ta...@jakarta.apache.org> on 2005/08/04 03:03:34 UTC
[jira] Created: (TAPESTRY-526) Tapestry throws a NPE if you try to configure an asset without an extension
Tapestry throws a NPE if you try to configure an asset without an extension
---------------------------------------------------------------------------
Key: TAPESTRY-526
URL: http://issues.apache.org/jira/browse/TAPESTRY-526
Project: Tapestry
Type: Bug
Components: Framework
Versions: 4.0
Reporter: Marcus Brito
If you try to configure an asset pointing to a resource without an extension, let's say:
<asset name="tr_curve_white" path="context:/images/tr_curve_white"/>
Tapestry throws an NPE:
# java.lang.String.substring(String.java:1768)
# org.apache.tapestry.web.LocalizedWebContextResourceFinder.resolve(LocalizedWebContextResourceFinder.java:49)
# org.apache.tapestry.web.WebContextResource.getLocalization(WebContextResource.java:65)
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Assigned: (TAPESTRY-526) Tapestry throws a NPE if you try to configure an asset without an extension
Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-526?page=all ]
Howard M. Lewis Ship reassigned TAPESTRY-526:
---------------------------------------------
Assign To: Howard M. Lewis Ship
> Tapestry throws a NPE if you try to configure an asset without an extension
> ---------------------------------------------------------------------------
>
> Key: TAPESTRY-526
> URL: http://issues.apache.org/jira/browse/TAPESTRY-526
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Marcus Brito
> Assignee: Howard M. Lewis Ship
> Attachments: extensionlessResource.patch
>
> If you try to configure an asset pointing to a resource without an extension, let's say:
> <asset name="tr_curve_white" path="context:/images/tr_curve_white"/>
> Tapestry throws an NPE:
> # java.lang.String.substring(String.java:1768)
> # org.apache.tapestry.web.LocalizedWebContextResourceFinder.resolve(LocalizedWebContextResourceFinder.java:49)
> # org.apache.tapestry.web.WebContextResource.getLocalization(WebContextResource.java:65)
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Updated: (TAPESTRY-526) Tapestry throws a NPE if you try to configure an asset without an extension
Posted by "Raphael Jean (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-526?page=all ]
Raphael Jean updated TAPESTRY-526:
----------------------------------
Attachment: extensionlessResource.patch
Patch that fixes the problem in LocalizedWebContextResourceFinder.
Includes new test that experiences the problem.
Al test suites run successfully.
See HIVEMIND-145
> Tapestry throws a NPE if you try to configure an asset without an extension
> ---------------------------------------------------------------------------
>
> Key: TAPESTRY-526
> URL: http://issues.apache.org/jira/browse/TAPESTRY-526
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Marcus Brito
> Attachments: extensionlessResource.patch
>
> If you try to configure an asset pointing to a resource without an extension, let's say:
> <asset name="tr_curve_white" path="context:/images/tr_curve_white"/>
> Tapestry throws an NPE:
> # java.lang.String.substring(String.java:1768)
> # org.apache.tapestry.web.LocalizedWebContextResourceFinder.resolve(LocalizedWebContextResourceFinder.java:49)
> # org.apache.tapestry.web.WebContextResource.getLocalization(WebContextResource.java:65)
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
[jira] Closed: (TAPESTRY-526) Tapestry throws a NPE if you try to configure an asset without an extension
Posted by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-526?page=all ]
Howard M. Lewis Ship closed TAPESTRY-526:
-----------------------------------------
Fix Version: 4.0
Resolution: Fixed
> Tapestry throws a NPE if you try to configure an asset without an extension
> ---------------------------------------------------------------------------
>
> Key: TAPESTRY-526
> URL: http://issues.apache.org/jira/browse/TAPESTRY-526
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Marcus Brito
> Assignee: Howard M. Lewis Ship
> Fix For: 4.0
> Attachments: extensionlessResource.patch
>
> If you try to configure an asset pointing to a resource without an extension, let's say:
> <asset name="tr_curve_white" path="context:/images/tr_curve_white"/>
> Tapestry throws an NPE:
> # java.lang.String.substring(String.java:1768)
> # org.apache.tapestry.web.LocalizedWebContextResourceFinder.resolve(LocalizedWebContextResourceFinder.java:49)
> # org.apache.tapestry.web.WebContextResource.getLocalization(WebContextResource.java:65)
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org