Updated Branches:
  refs/heads/master 566e74362 -> fe890d654

first set all the values before trying to accept it (accept needs them)
still not a a perfect solution because there are some protected/public
methods called through accept() now

Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/fe890d65
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/fe890d65
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/fe890d65

Branch: refs/heads/master
Commit: fe890d654a6a48a5e02a6805a53039db8cccbfa7
Parents: 566e743
Author: Johan Compagner <[email protected]>
Authored: Sun Feb 26 13:33:25 2012 +0100
Committer: Johan Compagner <[email protected]>
Committed: Sun Feb 26 13:35:17 2012 +0100

----------------------------------------------------------------------
 .../wicket/request/resource/PackageResource.java   |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/fe890d65/wicket-core/src/main/java/org/apache/wicket/request/resource/PackageResource.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/request/resource/PackageResource.java
 
b/wicket-core/src/main/java/org/apache/wicket/request/resource/PackageResource.java
index 6dd2d40..f356980 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/request/resource/PackageResource.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/request/resource/PackageResource.java
@@ -156,17 +156,16 @@ public class PackageResource extends AbstractResource 
implements IStaticCacheabl
                        path = name;
                }
 
+               scopeName = scope.getName();
+               this.locale = locale;
+               this.style = style;
+               this.variation = variation;
                if (!accept(scope, path))
                {
                        throw new PackageResourceBlockedException(
                                "Access denied to (static) package resource " + 
absolutePath +
                                        ". See IPackageResourceGuard");
                }
-
-               scopeName = scope.getName();
-               this.locale = locale;
-               this.style = style;
-               this.variation = variation;
        }
 
        private Locale getCurrentLocale()

Reply via email to