Bug 43923 - CodeSource's implies method discrepancy
Summary: CodeSource's implies method discrepancy
Status: UNCONFIRMED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: 0.98
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-28 12:44 UTC by Pierre Mobde
Modified: 2010-05-26 17:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
file URL check correction (803 bytes, patch)
2010-04-28 13:04 UTC, Pierre Mobde
Details | Diff
patch correcting the bug (805 bytes, patch)
2010-05-26 17:49 UTC, Pierre Mobde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Mobde 2010-04-28 12:44:26 UTC
Sun documentation describes precisely how the URLs in the policy codebase works. Especially the file URLs recusivity:
http://java.sun.com/javase/6/docs/technotes/guides/security/PolicyFiles.html
http://java.sun.com/j2se/1.5.0/docs/api/java/security/CodeSource.html#implies%28java.security.CodeSource%29

Currently the GnuClasspath implementation doesn't work the same way.
Comment 1 Pierre Mobde 2010-04-28 13:04:49 UTC
Created attachment 20506 [details]
file URL check correction

It is not optimal in performance but fixes the problem
Comment 2 Pierre Mobde 2010-05-26 17:49:59 UTC
Created attachment 20754 [details]
patch correcting the bug

Only the trailing "-" or "*" shouldn't be included when matching the urls.