-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fix issues reported by Coverity Scan #5995
Conversation
Fixes: 7a612fa ("Update MetadataEditor.java") Signed-off-by: Stefan Weil <[email protected]>
Fixes: 6c6f5cf ("adjust property search, so legacy filters do work") Signed-off-by: Stefan Weil <[email protected]>
@Kathrin-Huber, could you please review the change in Kitodo/src/main/java/org/kitodo/production/services/data/FilterService.java? |
filter.replace("template","property"); | ||
filter = filter.replace("processproperty","property"); | ||
filter = filter.replace("workpiece","property"); | ||
filter = filter.replace("template","property"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The functional equivalent would be to remove this method. We don’t support these search terms any more since a long time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that code implements something which is no longer supported, then removing it is indeed the best solution.
@stweil would you mind opening a corresponding pull request with the same fix against the 3.6.x branch? |
Done in PR #6027. |
Fixes: 7a612fa ("Update MetadataEditor.java")
Fixes: 6c6f5cf ("adjust property search, so legacy filters do work")