Skip to content

Conversation

@Ratatou2
Copy link
Contributor

@Ratatou2 Ratatou2 commented Aug 16, 2025

Fixes : #30173, Related : #54462

Summary

This pull request updates resources/config/mimetypealiases.dist.json to include common audio and
video MIME type aliases, improving their recognition for features like automated tagging.

Scope of this PR

This change is strictly limited to updating the mimetypealiases.dist.json configuration file.

Any corresponding UI changes, such as updating the MIME type dropdown in the "Automated Tagging"
interface, are considered out of scope for this PR and must be addressed in a separate pull request.

How to test

  1. Verify the contents of resources/config/mimetypealiases.dist.json to confirm that the new audio and video MIME types have been added.
  2. (Optional) Create an automated tagging rule for a new MIME type (e.g., audio/mpeg). Upload a file of that type (e.g., an MP3 file) and verify that the tag is applied correctly.

Copy link
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but I'm a bit unfamiliar with that code

@provokateurin
Copy link
Member

@Ratatou2 please rebase onto the master branch. We don't merge the master branch into feature branches.

@Ratatou2 Ratatou2 force-pushed the feat/30173-add-audio-video-mimetypes branch from c91aa43 to ac6f6c1 Compare August 19, 2025 14:45
@Ratatou2
Copy link
Contributor Author

@Ratatou2 please rebase onto the master branch. We don't merge the master branch into feature branches.

@provokateurin
Done!
Rebased onto the latest master branch.
Thanks for the review!

@CarlSchwan CarlSchwan enabled auto-merge August 19, 2025 14:49
@Ratatou2
Copy link
Contributor Author

@Ratatou2 please rebase onto the master branch. We don't merge the master branch into feature branches.

@provokateurin
There's an IntegrityCheck test failure related to the MIME types I added:

The test testVerifyCoreSignatureWithModifiedMimetypelistSignatureData is failing because the expected signature doesn't include the new audio/video MIME types I added.

Could you guide me on how to update the integrity signatures for the new MIME types?
Or is this something that needs to be handled by a maintainer?

Thanks!

auto-merge was automatically disabled August 19, 2025 16:15

Head branch was pushed to by a user without write access

@Ratatou2 Ratatou2 force-pushed the feat/30173-add-audio-video-mimetypes branch from ac6f6c1 to 00ac2ee Compare August 19, 2025 16:15
@Ratatou2
Copy link
Contributor Author

Hi @provokateurin @CarlSchwan,

I see there's an IntegrityCheck test failure due to the signature mismatch with the new MIME types I added.
Since auto-merge is enabled but blocked by this test, and new PRs keep getting merged (requiring frequent rebases), could you help guide me on the next steps?

Should I wait for maintainer assistance with the integrity signatures, or is there something I can do to resolve this?

Thanks for your help!

@provokateurin
Copy link
Member

You don't need to rebase unless there is a conflict. I'll ask for the signature to be updated.

@provokateurin
Copy link
Member

@Ratatou2 please follow the instructions at

// When updating the mimetype list the test assets need to be updated as well

@Ratatou2 Ratatou2 force-pushed the feat/30173-add-audio-video-mimetypes branch from 75afaf5 to 205b466 Compare August 28, 2025 17:56
@Ratatou2
Copy link
Contributor Author

@provokateurin

Hello! I've addressed the feedback regarding the test assets you requested.

I followed the instructions in the comment on line 734 of the server/tests/lib/IntegrityCheck/CheckerTest.php file.
I updated the signature.json file to reflect the new MIME type aliases and to ensure the integrity check passes.
The CheckerTest.php file has been restored to its original state.
(I also confirmed that mimetypelist.js is included in .gitignore, so it has not been added to the commit.)

Please let me know if any further modifications are needed.
Thank you for your review 😊

@github-actions
Copy link
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

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.)

@provokateurin
Copy link
Member

You'll also need to update the failing test.

@AndyScherzinger
Copy link
Member

I guess it needs further changes, like dea865d

But I am not an expert, just checked former commits updating the mapping file

@Ratatou2
Copy link
Contributor Author

I guess it needs further changes, like dea865d

But I am not an expert, just checked former commits updating the mapping file

Thank you for your feedback.
I'll keep it in mind and check the test errors together.

@Ratatou2 Ratatou2 requested a review from a team as a code owner September 3, 2025 11:50
@Ratatou2 Ratatou2 removed the request for review from a team September 3, 2025 11:50
@Ratatou2 Ratatou2 requested review from susnux and szaimen September 3, 2025 11:50
@Ratatou2 Ratatou2 force-pushed the feat/30173-add-audio-video-mimetypes branch from b0d1288 to 94023b1 Compare September 3, 2025 12:11
Adds a set of common audio and video MIME type aliases to the
 configuration file.

This allows the system to correctly identify these file types for
features such as automated tagging, improving overall file handling.

This change is limited to the configuration update. UI modifications
 are out of scope and will be addressed in a separate pull request.

 Fixes nextcloud#30173

Signed-off-by: JinHakChoi <ws423257@gmail.com>
Updates the  test assets.
This is a necessary step to reflect the recently added audio and video MIME type aliases
and ensure the integrity checks pass for the core assets.

This commit is a follow-up to the MIME type alias addition.

Signed-off-by: JinHakChoi <ws423257@gmail.com>
Updates the  test assets.
This is a necessary step to reflect the recently added audio and video MIME type aliases
and ensure the integrity checks pass for the core assets.

This commit is a follow-up to the MIME type alias addition.

Signed-off-by: JinHakChoi <ws423257@gmail.com>
Signed-off-by: JinHakChoi <ws423257@gmail.com>
@Ratatou2 Ratatou2 force-pushed the feat/30173-add-audio-video-mimetypes branch from 94023b1 to ea39540 Compare September 3, 2025 12:56
@Ratatou2
Copy link
Contributor Author

Ratatou2 commented Sep 3, 2025

@provokateurin
I've updated the relevant tests and files accordingly!
(I understand the Cypress and Performance tests are expected to fail for PRs from forks)

This should be ready for a final review and merge :)

Signed-off-by: JinHakChoi <ws423257@gmail.com>
@AndyScherzinger AndyScherzinger merged commit 186e725 into nextcloud:master Sep 4, 2025
178 of 187 checks passed
@welcome
Copy link

welcome bot commented Sep 4, 2025

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

@injae-kim
Copy link

Nice work @Ratatou2 🎉 🎉 🎉

@AndyScherzinger AndyScherzinger added this to the Nextcloud 33 milestone Sep 4, 2025
@AndyScherzinger AndyScherzinger added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Sep 4, 2025
@Ratatou2 Ratatou2 deleted the feat/30173-add-audio-video-mimetypes branch September 13, 2025 11:50
@skjnldsv skjnldsv modified the milestones: Nextcloud 33, Nextcloud 32 Oct 2, 2025
@nextcloud-bot nextcloud-bot mentioned this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add audio MIME types to default MIME aliases

7 participants