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

[5.1][bug] Media manager misbehaves on files with capitalized extensions #43325

Closed
wants to merge 2 commits into from

Conversation

dgrammatiko
Copy link
Contributor

@dgrammatiko dgrammatiko commented Apr 21, 2024

Pull Request for Issue #43315 .

Summary of Changes

  • Fix the logic

Testing Instructions

Note that you have to copy the file, Media Manager always normalizes extensions to lowercase!!!

  • Copy a file with a capitalized extension
  • Try to edit -> rotate -> save

Actual result BEFORE applying this Pull Request

File is not saved

Expected result AFTER applying this Pull Request

File is saved

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Usually from 3rd PD bad code or user uploaded assets through SSH/FTP…
@brianteeman
Copy link
Contributor

tested crop, resize and rotate successfully with an image named potato.JPG

@brianteeman
Copy link
Contributor

I have tested this item ✅ successfully on e42d7e7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43325.

@dautrich
Copy link

Tested resize and rotate unsuccessfully with a file named DSC_0008.JPG
Buttons "Save" and "Save & Close" seemed to work, but afterward the image was unchanged.

@dautrich
Copy link

I have tested this item 🔴 unsuccessfully on e42d7e7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43325.

@dgrammatiko
Copy link
Contributor Author

@dautrich how did you test this PR? Did you d/l the prebuild installation or just applied the patch with the non working for this case patch tester?

@Quy
Copy link
Contributor

Quy commented Apr 21, 2024

Please apply to crop.

@dautrich
Copy link

dautrich commented Apr 22, 2024

@dgrammatiko
I tested with patchtester, but I can repeat my test with the prebuilt package.

Just for my understanding: Why does testing this PR with patchtester not work? And how can I recognize such a test? Is there a special flag?

@dautrich
Copy link

I have tested this item ✅ successfully on 1c79063

I tested with the prebuilt package (now). Took the same picture as before. Cropped, saved, resized, saved, rotated, saved and closed. Saw modified picture in media manager.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43325.

@dgrammatiko
Copy link
Contributor Author

@dautrich iirc patchtester cannot be used on any PRs that have the label NPM Resource Changed and Coposer Dependency Changed. Thanks for testing

@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on 1c79063


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43325.

@alikon
Copy link
Contributor

alikon commented Apr 22, 2024

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43325.

@dgrammatiko
Copy link
Contributor Author

@laoneo @LadySolveig do you want this against 5.x or 4.4.x? The issue exists in both branches and files seems to be identical (although the reported issue was for 5.x)...

@exlemor
Copy link

exlemor commented Apr 23, 2024

Hi @dgrammatiko, I had initially created #43220 which is similar / partially around the same topic and I was recommended to base it for 4.4.x (and I confirmed the issues are both in 4.4.x and 5.x) since it would be 'up-patched' (or whatever the technical term).

@laoneo
Copy link
Member

laoneo commented Apr 23, 2024

If you do it against 4.4, then it must be retested and this one closed. For me it is ok to leave it in 5 but when you feel in the mood to backport to 4, then this one should be closed as it will be upmerged anyway.

@dgrammatiko dgrammatiko changed the base branch from 5.1-dev to 4.4-dev April 23, 2024 08:59
@dgrammatiko dgrammatiko changed the base branch from 4.4-dev to 5.1-dev April 23, 2024 08:59
@dgrammatiko
Copy link
Contributor Author

I'll open a new one for 4.4, let me know if this should be closed or could be merged (skipping the upmerge)

@dgrammatiko
Copy link
Contributor Author

PR for 4.4.x: #43336

@HLeithner
Copy link
Member

closing since we have a pr for 4.4

@HLeithner HLeithner closed this Apr 24, 2024
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Apr 24, 2024
@dgrammatiko dgrammatiko deleted the 5.1-dev_mm-bug branch April 26, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NPM Resource Changed This Pull Request can't be tested by Patchtester PR-5.1-dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants