Bugs item #2970512, was opened at 2010-03-15 08:26 Message generated for change (Comment added) made by henryju You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=2970512&group_id=61302
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core API Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Todd Owen (toddmowen) Assigned to: Nobody/Anonymous (nobody) Summary: getImage() treats absolute URL as relative Initial Comment: My site has a page "/en/admin/43/pictures", and on that page there is an img tag with an absolute URL: "/pictures/1/1/200x200.jpg". In the following code, the assertImagePresent() call succeeds, but getImage() fails: beginAt("/en/admin/43/pictures"); assertImagePresent("/pictures/1/1/200x200.jpg", null); Image img = getImage("/pictures/1/1/200x200.jpg", null); // AssertionFailedError: Could not load image from http://localhost:8080/en/admin/43/pictures/1/1/200x200.jpg Looking at the code, I see the problem is in the WebTester.createURL() method, which treats this as a relative URL and tacks it onto the current directory (i.e. /en/admin/43/), giving a nonexistent URL "/en/admin/43/pictures/1/1/200x200.jpg". ---------------------------------------------------------------------- >Comment By: Julien HENRY (henryju) Date: 2010-08-12 22:16 Message: If someone can provide a patch with a JUnit test and the fix, I will be happy to apply it for next release. ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2010-08-12 07:36 Message: Also seeing this same issue with our tests. Any time-frame for a fix or a workaround for this? ---------------------------------------------------------------------- Comment By: Alexandre CESARI (acesari) Date: 2010-05-12 10:22 Message: Same issue while testing our project for image presence. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=2970512&group_id=61302 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ JWebUnit-development mailing list JWebUnit-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-development