[
https://issues.apache.org/jira/browse/WICKET-4143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130841#comment-13130841
]
Igor Vaynberg commented on WICKET-4143:
---------------------------------------
seems to me this is a much better fix to WICKET-1992. most devs would probably
set the parent placeholder without even thinking that it would enable access to
WEB-INF dir, thus not really fixing WICKET-1992. this way, we have the best of
both worlds out of the box.
> 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.0, 1.5.1
> Environment: Windows XP, Eclipse 3.7, Oracle JDK 6
> Reporter: Johan
> Attachments: WICKET-4143-autolink-bug.zip, screen.png
>
>
> 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