Pending

User tests: Successful: Unsuccessful:

avatar BrainforgeUK
BrainforgeUK
26 Nov 2024

Remove whitespace around extension folder names.

Pull Request for Issue # .

Replacement for pull request 40989.

Summary of Changes

Apply trim() function to filename.

An alternative solution would be to remove the whitespace in the manifest.
But why? It is valid XML and the installation failure can catch extension developers by surprise.

Testing Instructions

Install attached test package.
test1.zip

Actual result BEFORE applying this Pull Request

Package installation fails.

Expected result AFTER applying this Pull Request

Package installation succeeds

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

avatar BrainforgeUK BrainforgeUK - open - 26 Nov 2024
avatar BrainforgeUK BrainforgeUK - change - 26 Nov 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Nov 2024
Category Libraries
avatar brianteeman
brianteeman - comment - 26 Nov 2024

The existing code is correct. Joomla cannot and should not try to fix problems in other peoples code. An extension developer will obviously test their own code before they release it.

avatar richard67
richard67 - comment - 26 Nov 2024

An alternative solution would be to remove the whitespace in the manifest.
But why? It is valid XML and the installation failure can catch extension developers by surprise.

Yes, it is valid XML having new lines inside XML element values.

But the XML standard also makes clear that EVERYTHING between the element's opening and closing tag belongs to the value, and that means also the line feeds or whatever else there is.

And that means that the extension's manifest is wrong if it adds something (line feeds) to the value which should not be there.

Add a Comment

Login with GitHub to post a comment