-
Notifications
You must be signed in to change notification settings - Fork 105
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
Enable Validation for all Attachments #2114
Comments
Having a look. |
Bit of a clarification on this.
The salient case when the method is invoked with an "IMPORTED" tag seems to be when importing models with dependencies - however in that case the file passed is the original zip file, so the validation would be successful - see AbstractModelImporter#postProcessImportedModel. There might also be another case when copying models from somewhere to somewhere else, as all tags are passed (i.e. it might include the "IMPORTED" for all I know) - however, this looks like it's dealing with already imported attachments, so they can hardly have an invalid extension (unless we decide one day that we want to remove something from the list - hopefully never). Other usages seem even safer. @aedelmann removing the filtering and PRing this shortly, let me know if you're ok with the reasoning above. |
PR here, in the meantime. |
@mena-bosch Closing issue. |
When an attachment is created, it will only be validated, when it has the tag IMPORTED. Validation of attachments should always be enabled.
See ModelRepository.java, attachFile()
The text was updated successfully, but these errors were encountered: