Skip to content

Encode path parameters in MM API calls#39613

Merged
roland-d merged 3 commits intojoomla:4.2-devfrom
Digital-Peak:mm/special-chars-support
Jan 12, 2023
Merged

Encode path parameters in MM API calls#39613
roland-d merged 3 commits intojoomla:4.2-devfrom
Digital-Peak:mm/special-chars-support

Conversation

@laoneo
Copy link
Copy Markdown
Member

@laoneo laoneo commented Jan 12, 2023

Summary of Changes

The media manager crashes on several places when folders or files have special characters like "+" in their filename. This pr fixes this issue.

@dgrammatiko can you review this one?

Testing Instructions

  • Create by FTP or whatever you use images within folders with special characters like the "+"
  • Open the media manager
  • Rename such an image with a special character (don't worry, the character get removed, because of security in joomla, but this is ok)
  • Delete such an image
  • Select such an image in the article form for an article

Actual result BEFORE applying this Pull Request

Errors like file not found are thrown.

Expected result AFTER applying this Pull Request

All operations are working.

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

@joomla-cms-bot joomla-cms-bot added NPM Resource Changed This Pull Request can't be tested by Patchtester PR-4.2-dev labels Jan 12, 2023
@dgrammatiko
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on d1622c6


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

@viocassel
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 2d7fefd


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

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jan 12, 2023

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 12, 2023
@roland-d roland-d merged commit 87441ba into joomla:4.2-dev Jan 12, 2023
@roland-d roland-d deleted the mm/special-chars-support branch January 12, 2023 15:14
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jan 12, 2023
@roland-d
Copy link
Copy Markdown
Contributor

Thank you.

@roland-d roland-d added this to the Joomla! 4.2.7 milestone Jan 12, 2023
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants