jglobus / JGlobus

jGlobus is a collection of Java client libraries for Globus® Toolkit security, GRAM, and GridFTP.
http://www.globus.org/toolkit/jglobus/
Apache License 2.0
24 stars 44 forks source link

Only cache CA's signing policy as not found after searching all entries #139

Closed paulmillar closed 9 years ago

paulmillar commented 10 years ago

Currently, when ResourceSigningPolicyStore searches all signing policy files, a failure to load any file results in the CA being stored in the not-found cache, even though the CA likely has nothing to do with the signing-policy file that failed to load.

A separate bug (in how wildcards are handled) means the scan through all files will certainly fail if any CA has been removed since the JGlobus application started.

Therefore, if a CA's hash is calculated incorrectly and some CA has been removed then the CA's entry will be found the first time, but marked in the negative cache. Subsequent attempts to find the CA's signing policy will fail.

This patch fixes this by only marking the CA as not found after an exhaustive search.

Target: master Request: 2.1 Request: 2.0