You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Franz Amador <fg...@yahoo.com> on 2008/01/03 20:50:26 UTC

T5.0.7: PageTester.renderPage chokes on page URLs that have blanks

My page unit test dies in PageTester.renderPage.  The actual death is at URLChangeTracker.add(URL), line 72, namely

URI resourceURI = url.toURI();

which gives a URL parsing error.  The problem seems to be that my page URL has blanks:

file:/C:/Documents and Settings/Franz/workspace/pi-tapestry5/src/main/webapp/AppHomeDirPage.tml

because I'm using the default Eclipse workspace location.  It doesn't die when I run the app, though.  When I look at the URL in the debugger then, I see that the blanks have been escaped:

file:/C:/Documents%20and%20Settings/Franz/workspace/pi-tapestry5/src/main/webapp/AppHomeDirPage.tml

so it looks like the page Resource generates a different URL when run as an app (blanks escaped) than when run as a test (blanks not escaped).



RE: T5.0.7: PageTester.renderPage chokes on page URLs that have blanks

Posted by Joel Wiegman <Jo...@dswinc.com>.
This is a known issue:

https://issues.apache.org/jira/browse/TAPESTRY-1568 

-----Original Message-----
From: Franz Amador [mailto:fgamador@yahoo.com] 
Sent: Thursday, January 03, 2008 2:50 PM
To: Tapestry
Subject: T5.0.7: PageTester.renderPage chokes on page URLs that have
blanks

My page unit test dies in PageTester.renderPage.  The actual death is at
URLChangeTracker.add(URL), line 72, namely

URI resourceURI = url.toURI();

which gives a URL parsing error.  The problem seems to be that my page
URL has blanks:

file:/C:/Documents and
Settings/Franz/workspace/pi-tapestry5/src/main/webapp/AppHomeDirPage.tml

because I'm using the default Eclipse workspace location.  It doesn't
die when I run the app, though.  When I look at the URL in the debugger
then, I see that the blanks have been escaped:

file:/C:/Documents%20and%20Settings/Franz/workspace/pi-tapestry5/src/mai
n/webapp/AppHomeDirPage.tml

so it looks like the page Resource generates a different URL when run as
an app (blanks escaped) than when run as a test (blanks not escaped).



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org