-
Notifications
You must be signed in to change notification settings - Fork 17
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
Duplicate Element Names in Archive File object #340
Comments
If you clone https://github.com/nemonik/java_stix.git and comment the call to the patch near abouts line 104, and then run the gradle script XJC will fail to build the simple DOM be cause of properties "EncryptionAlgorithm" and "DecryptionKey" already being defined.
|
Where are we with this? |
If it would help, I could commit this in a branch. It won't be in the "official" schemas until the next release, and even then, I'm not sure we can do it in a minor release or if it would have to be in a major release. Because the elements are defined by an |
Updated title slightly for accuracy. |
I don't think this is really an issue of duplicate elements, just duplicate element names (even though they really reside in different namespaces). On the File Object, "Encryption_Algorithm"/"Decryption_Key" refer to the encryption of an individual file. On the Archive File Object, they refer to the encryption of the archive file itself. Thus, they serve different use cases (you might have an Archive File that's encrypted one way, and which contains one or more Files that are encrypted in a different way). My suggestion would be to simply rename "Encryption_Algorithm" and "Decryption_Key" on the Archive File Object to "Archive_Encryption_Algorithm" and "Archive_Decryption_Key", respectively. |
Both "Encryption_Algorithm" and "Decryption_Key" appear in the Archive_File_Object.xsd when they already are declared in the File_Object.xsd schema. This causes problems.
See patch below.
The text was updated successfully, but these errors were encountered: