Invalid URLs generated when auto linking to resources in base packages
----------------------------------------------------------------------
Key: WICKET-4143
URL: https://issues.apache.org/jira/browse/WICKET-4143
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.5.1, 1.5.0
Environment: Windows XP, Eclipse 3.7, Oracle JDK 6
Reporter: Johan
Attachments: WICKET-4143-autolink-bug.zip
When automatic linking is enabled via
getMarkupSettings().setAutomaticLinking(true);
and
getResourceSettings().setParentFolderPlaceholder()
is not set
and images from parent packages are referenced in a page's HTML,
then Wicket replaces the relative image path with auto-generated, but broken
URLs in the markup output.
Instead of generating non-working URLs Wicket should throw an
IllegalStateException complaining about the missing parentFolderPlaceholder
when a automatic link candidate is found in the source markup.
The attached quickstart project demonstrates this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira