You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/07/05 22:32:16 UTC
[jira] [Assigned] (WICKET-3863) SecurePackageResourceGuard
acceptAbsolutePath pattern check loop
[ https://issues.apache.org/jira/browse/WICKET-3863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov reassigned WICKET-3863:
---------------------------------------
Assignee: Martin Grigorov
> SecurePackageResourceGuard acceptAbsolutePath pattern check loop
> -----------------------------------------------------------------
>
> Key: WICKET-3863
> URL: https://issues.apache.org/jira/browse/WICKET-3863
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC5.1
> Environment: all
> Reporter: Richard Emberson
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 1.5-RC6
>
>
> The following loop might want to break out if a hit (== true) is found:
> // Check against the pattern
> boolean hit = false;
> for (SearchPattern pattern : this.pattern)
> {
> if ((pattern != null) && pattern.isActive())
> {
> if (pattern.matches(path))
> {
> hit = pattern.isInclude();
> }
> }
> }
> as it is, one pattern.isInclued could return true, but the next one false,
> Mayby break out of loop if hit == true???
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira