-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keys map is not evaluated in the order it appears in the file #25
Comments
Kortanul
added a commit
to Kortanul/pgpverify-maven-plugin
that referenced
this issue
Nov 11, 2017
ensures that keys are evaluated in the order that they appear in the keys map file, rather than in hash code order.
Kortanul
added a commit
to Kortanul/pgpverify-maven-plugin
that referenced
this issue
Nov 11, 2017
the format being used is not quite that of a properties file. the fact that CheckStyle is unhappy with a sample keys map "properties" file that is accepted by PGP confirms this. I've renamed the vars, changed the docs, and updated the sample files. the new file extension is ".list" for keys map files.
Kortanul
added a commit
to Kortanul/pgpverify-maven-plugin
that referenced
this issue
Nov 12, 2017
empty lines should not cause errors.
slawekjaranowski
pushed a commit
that referenced
this issue
Nov 12, 2017
ensures that keys are evaluated in the order that they appear in the keys map file, rather than in hash code order.
slawekjaranowski
pushed a commit
that referenced
this issue
Nov 12, 2017
the format being used is not quite that of a properties file. the fact that CheckStyle is unhappy with a sample keys map "properties" file that is accepted by PGP confirms this. I've renamed the vars, changed the docs, and updated the sample files. the new file extension is ".list" for keys map files.
slawekjaranowski
pushed a commit
that referenced
this issue
Nov 12, 2017
empty lines should not cause errors.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to Reproduce
test:test-package:1.0.0
that has the PGP key0xA6ADFC93EF34893E
in a project that uses PGP verify.Expected Results
PGP signature verification passes because it uses the first mapping it encounters (
test:*:1.0.0=0xA6ADFC93EF34893E
).Actual Results
PGP signature verification fails because the keys map is loaded like a
Properties
file, which is backed by aHashtable
. Consequently, the second mapping (test:test-package:*=0xA6ADFC93EF34893F
) appears first in the hash table because the hash oftest:test-package:*
is a lower hash code than the hash oftest:*:1.0.0
.The text was updated successfully, but these errors were encountered: