fix: restrict mime type list depending on check operator#50259
Conversation
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
|
@susnux may I kindly ask you for a review, please? |
7bd2d6a to
0d320d3
Compare
fixes #23666 Signed-off-by: Robin Windey <[email protected]>
0d320d3 to
3249ee2
Compare
|
@come-nc the failing cypress tests seem to be unrelated? AFAIK there are no workflowengine E2E tests ... |
|
The more I think about this the more I think we should simply only allow matches/!matches operator for mime types. If the custom value is only possible for regex anyway, we should require a regex always. It’s the most powerful thing and it will be less confusing. |
Would need repair steps however, and might be more confusing to those not knowing regex. Also end user might be using this. |
Maybe we could combine both approaches:
Of course repair steps would be needed in any case but I guess it would be worth it. To me this sound like the cleanest solution. What do you think? |
|
@R0Wi Can we directly show "Custom mimetype" and "Custom regex" as 2 separates options in the drop down? |
I think this should be possible, yes 👍 Pretty good idea. Do you want me to change the PR accordingly or are we waiting for further feedback first? |
If you can change it that’s great, yeah. |
Summary
Checklist