Skip to content
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: Check file extension instead of mimeType [WPB-10605] 🍒 #2954

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 16, 2024

BugWPB-10605 [Android] check file extension instead of mimeType when deciding if a file is restrected or not

This PR was automatically cherry-picked based on the following PR:

Original PR description:


What's new in this PR?

Issues

in ValidateAssetMimeTypeUseCase when we calculate if file can be shared or not we were comparing files mimeType to list of allowed Extensions.

Causes (Optional)

Just was implemented in that way long time ago.

Solutions

fix it and compare files extension to list of allowed Extensions.

Copy link

@borichellow borichellow enabled auto-merge August 16, 2024 10:54
Copy link
Contributor Author

github-actions bot commented Aug 16, 2024

Test Results

3 179 tests  +8   3 074 ✔️ +8   3m 17s ⏱️ -18s
   544 suites +1      105 💤 ±0 
   544 files   +1          0 ±0 

Results for commit f27c0ff. ± Comparison against base commit e52dc1d.

♻️ This comment has been updated with latest results.

@borichellow borichellow added this pull request to the merge queue Aug 16, 2024
@datadog-wireapp
Copy link

Datadog Report

Branch report: fix/check-file-extension-instead-of-mimetype-cherry-pick
Commit report: ba103cf
Test service: kalium-jvm

✅ 0 Failed, 3074 Passed, 105 Skipped, 9.82s Total Time

Merged via the queue into release/candidate with commit 683661d Aug 16, 2024
22 checks passed
@borichellow borichellow deleted the fix/check-file-extension-instead-of-mimetype-cherry-pick branch August 16, 2024 11:37
github-actions bot added a commit that referenced this pull request Aug 16, 2024
* Commit with unresolved merge conflicts

* Fixed cherry-pick issues

---------

Co-authored-by: boris <[email protected]>
Co-authored-by: Boris Safonov <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Aug 20, 2024
…2956)

* Commit with unresolved merge conflicts

* Fixed cherry-pick issues

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: boris <[email protected]>
Co-authored-by: Boris Safonov <[email protected]>
Co-authored-by: Mohamad Jaara <[email protected]>
@echoes-hq echoes-hq bot added the echoes: unplanned Any work item that isn’t part of the product or technical roadmap. label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: unplanned Any work item that isn’t part of the product or technical roadmap. 🚨 Potential breaking changes 👕 size: L type: bug / fix 🐞
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants