1
我在Google App Engine上使用Apache Shiro和Guice。Apache Shiro:權限過濾器正在驗證上次匹配的路徑
繼過濾器鏈存在於configureShiroWeb
addFilterChain("/**/first/second/third/**", AUTHC_BASIC, config(REST, "X"));
addFilterChain("/**/first/**", AUTHC_BASIC, config(REST, "Y"));
當請求用於API- example.appspot.com/v1/first/second/third製成,第一濾波器被旁路()函數和訪問被授予許可Ÿ用戶,不與X的
我使用下面的四郎和吉斯相關的依賴性:
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-core</artifactId>
<version>1.2.4</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-web</artifactId>
<version>1.2.4</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-guice</artifactId>
<version>1.2.4</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-servlet</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>com.google.inject.extensions</groupId>
<artifactId>guice-multibindings</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>com.sun.jersey.contribs</groupId>
<artifactId>jersey-guice</artifactId>
<version>1.8</version>
</dependency>
我已經將Shiro版本升級到1.4.0-RC2,然後問題仍然存在。 – Shilpi
嘗試使用最新的官方1.3.2版本,如果您仍然遇到問題,我們將爲下一個版本修復 –
即使在使用1.3.2版本後,我仍然面臨着這個問題。 – Shilpi