-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
[REF] Switch to using a non abandoned library for getting a mapping o… #16436
[REF] Switch to using a non abandoned library for getting a mapping o… #16436
Conversation
(Standard links)
|
Jenkins re test this please |
1 similar comment
Jenkins re test this please |
0b2b2ef
to
e547e5e
Compare
@seamuslee001 the test failures don't look related. |
test this please |
Jenkins re test this please |
e547e5e
to
456ee8f
Compare
456ee8f
to
59a36ff
Compare
@eileenmcnaughton @totten @stesi561 I believe this is a fine drop in replacement can you folks confirm? |
I only see one reference to "\MimeType\Mapping" in the codebase. What else needs confirming? |
@stesi561 that you can still view attached files and that the contact image shows correctly on the contact summary screen |
@seamuslee001 Needs rebase |
…f mimetpyes to extensions
59a36ff
to
108332d
Compare
rebased now @mattwire |
Is the new library more actively maintained? or is it because of active/known bugs with the current lib?
|
@mlutfy the katzien library is giving out a notice in composer saying it has been abaondoned hence the change |
@mlutfy "Package katzien/php-mime-type is abandoned, you should avoid using it. No replacement was suggested." |
OK :) Seems good to me, based on code review. Will try to do a quick test-run. Jenkins, test this please. |
I did a bit of poking around on the test site and looks good. Thanks @seamuslee001 |
…f mimetpyes to extensions
Overview
As picked up by @stesi561 the current library we use for a mapping of mimetypes to file extensions is now abandoned this switches it to the library https://github.com/adrienrn/php-mimetyper
Before
Abandoned Library used
After
Non Abandoned library used
I believe that the unit tests added here 6cb3fe2#diff-bc35985bf1e1cabd25b2ad862413d38eR98 ensure that we have sufficient coverage to prevent a regression in this area
ping @eileenmcnaughton @totten