[
https://issues.apache.org/jira/browse/WICKET-4143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130766#comment-13130766
]
Johan commented on WICKET-4143:
-------------------------------
Ok, I tested it myself with trunk. Works, BUT: Vigor now sets a default value
(::) for parentFolderPlaceholder. This renders the JavaDoc comment "Note that
by default the placeholder string is <code>null</code> and thus will not allow
to access parent folders. That is by purpose and for security reasons (see
Wicket-1992)." wrong. Does this now somehow affect WICKET-1992?
> 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