Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8041399 | 9 | Andy Herrick | P4 | Resolved | Fixed | b15 |
JDK-8045018 | 8u25 | Andy Herrick | P4 | Resolved | Fixed | b01 |
JDK-8053110 | emb-8u26 | Andy Herrick | P4 | Resolved | Fixed | b17 |
If a DRS rule uses a location based rule for a directory such as:
http://foo.com/dir1/dir2
it will match an artifact in a different directory such as:
http://foo.com/dir1/dir20/app.jnlp
due to the code in at end of RuleId.pathIncludes():
if (rulePath == null || rulePath.length() == 0 ||
artifactPath.startsWith(rulePath)) {
pathMatch = true;
} else {
Trace.println("Path mistach, actualPath: " + artifactPath,
TraceLevel.RULESET);
}
return pathMatch;
This is not the case if the location in the DRS includes the trailing slash:
http://foo.com/dir1/dir2/
http://foo.com/dir1/dir2
it will match an artifact in a different directory such as:
http://foo.com/dir1/dir20/app.jnlp
due to the code in at end of RuleId.pathIncludes():
if (rulePath == null || rulePath.length() == 0 ||
artifactPath.startsWith(rulePath)) {
pathMatch = true;
} else {
Trace.println("Path mistach, actualPath: " + artifactPath,
TraceLevel.RULESET);
}
return pathMatch;
This is not the case if the location in the DRS includes the trailing slash:
http://foo.com/dir1/dir2/
- backported by
-
JDK-8041399 DRS ruleset path matching problem
- Resolved
-
JDK-8045018 DRS ruleset path matching problem
- Resolved
-
JDK-8053110 DRS ruleset path matching problem
- Resolved