[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-dev
Subject: [jira] Created: (TAPESTRY-1947) Requests to non-existent pages URLs
From: "Thiago H. de Paula Figueiredo (JIRA)" <dev () tapestry ! apache ! org>
Date: 2007-11-30 16:44:43
Message-ID: 4044.1196441083183.JavaMail.jira () brutus
[Download RAW message or body]
Requests to non-existent pages URLs with extensions
---------------------------------------------------
Key: TAPESTRY-1947
URL: https://issues.apache.org/jira/browse/TAPESTRY-1947
Project: Tapestry
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.0.6
Reporter: Thiago H. de Paula Figueiredo
Quick summary: Tapestry 5.0.6 doesn't check the existence of a page when an URL which \
looks like an action request is requested (any url that has a period).
Long description:
If I request the page /xxx, where xxx is a non-existing page, T5 raises a
standard HTTP 404 error that I'm able to catch through the <error-page>
tag in my web.xml. So far, so good.
If I request the page /xxx.html, where xxx is a non-existing page, T5 does
not raise a 404 error: it throws an IllegalArgumentException:
java.lang.IllegalArgumentException: Unable to resolve 'cursos/id10' to a
known page name. Available page names: [list of my Tapestry pages].
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl$8.invoke(ComponentClassResolverImpl.java:417)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl$8.invoke(ComponentClassResolverImpl.java:412)
at
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl.canonicalizePageName(ComponentClassResolverImpl.java:410)
at
$ComponentClassResolver_1166cebf61d.canonicalizePageName($ComponentClassResolver_1166cebf61d.java)
at
org.apache.tapestry.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:59)
[snip]
It looks like non-existent pages checks are done with normal page
requests, but not with action requests.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic