metadata101 / iso19139.ca.HNAP

ISO Harmonized North American Profile (HNAP)
GNU General Public License v2.0
4 stars 18 forks source link

Mismatching security code in both language validation, missing lang i… #353

Closed wangf1122 closed 10 months ago

wangf1122 commented 11 months ago

Added couple of improvement validations.

1) This field is not mandatory so both lang can be missing, but if the user decide to input one lang and skip another. It will returns error:

image

2) The existing logic still works. It will catch the invalid security code. image

3) Both lang input are valid, but they are mismatched security code. For example one is Protected A and one is protected B

image

ianwallen commented 11 months ago

Did some test and I got errors on the following when I was not expecting any error as Unclassified is not supposed to have protected A/B image

wangf1122 commented 11 months ago

@ianwallen

you can pull and test again. I missed the dollar sign in one of the logic variable so that logic was totally skipped