This commit is contained in:
Lucio Lelii 2017-01-25 11:46:33 +00:00
parent b952768771
commit 0590be702e
3 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,7 @@
<ReleaseNotes> <ReleaseNotes>
<Changeset component="common-smartgears-2.1.1" date="2017-01-25">
<Change>Minor issue on filter exclusion fixed</Change>
</Changeset>
<Changeset component="common-smartgears-2.1.0" date="2016-10-24"> <Changeset component="common-smartgears-2.1.0" date="2016-10-24">
<Change>proxy configuration added</Change> <Change>proxy configuration added</Change>
<Change>solved a bug in events registration for ProfileManager</Change> <Change>solved a bug in events registration for ProfileManager</Change>

View File

@ -10,7 +10,7 @@
<groupId>org.gcube.core</groupId> <groupId>org.gcube.core</groupId>
<artifactId>common-smartgears</artifactId> <artifactId>common-smartgears</artifactId>
<version>2.1.0-SNAPSHOT</version> <version>2.1.1-SNAPSHOT</version>
<name>SmartGears</name> <name>SmartGears</name>
<properties> <properties>

View File

@ -133,7 +133,7 @@ public class RequestManager implements Filter {
String excludePath= exclude.getPath(); String excludePath= exclude.getPath();
log.trace("exclude is {}",exclude); log.trace("exclude is {}",exclude);
if ( if (
(EXCLUDE_ALL).equals(exclude) || (EXCLUDE_ALL).equals(excludePath) ||
(excludePath.endsWith(EXCLUDE_ALL) && path!=null && path.startsWith(excludePath.substring(0,excludePath.length()-2))) || (excludePath.endsWith(EXCLUDE_ALL) && path!=null && path.startsWith(excludePath.substring(0,excludePath.length()-2))) ||
excludePath.equals(path) || (path.endsWith("/") && excludePath.equals(path.substring(0, path.length()-1))) excludePath.equals(path) || (path.endsWith("/") && excludePath.equals(path.substring(0, path.length()-1)))
){ ){