NPM Resource Changed ? ? Pending
Pull Request for # 28226

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
10 Mar 2020

Pull Request for Issue #28226.

Summary of Changes

Adds file extension check to prevent issues when logo is not SVG.

Testing Instructions

node build.js --compile-js required.

Edit Atum template style.
Select a logo.
Inspect browser console.

Expected result

No errors.

Actual result

XML Parsing Error: not well-formed
Location: http://localhost/joomla-cms/administrator/index.php?option=com_templates&view=style&layout=edit&id=10
Line Number 1, Column 1: index.php:1:1
TypeError: svg is undefined template.js:95:11

Documentation Changes Required

No.

Additional Comments

I've picked what I think is the cleanest approach as it avoids unnecessary request when image is not SVG. It's somewhat limiting (the file doesn't need to have an extension) but works for our case. Alternatively, we could make the request but wrap it in try/catch or try to figure out the response some other way.

avatar SharkyKZ SharkyKZ - open - 10 Mar 2020
avatar SharkyKZ SharkyKZ - change - 10 Mar 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Mar 2020
Category JavaScript Repository NPM Change
3c23309 10 Mar 2020 avatar SharkyKZ CS
avatar SharkyKZ SharkyKZ - change - 10 Mar 2020
Labels Added: NPM Resource Changed ?
avatar SharkyKZ SharkyKZ - change - 10 Mar 2020
The description was changed
avatar SharkyKZ SharkyKZ - edited - 10 Mar 2020
avatar SharkyKZ SharkyKZ - change - 10 Mar 2020
Rel_Number 0 28226
Relation Type Pull Request for
avatar Quy
Quy - comment - 10 Mar 2020

I have tested this item successfully on 512e9d6


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

avatar Quy Quy - test_item - 10 Mar 2020 - Tested successfully
avatar brianteeman
brianteeman - comment - 10 Mar 2020

I have tested this item successfully on 512e9d6


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

avatar brianteeman brianteeman - test_item - 10 Mar 2020 - Tested successfully
avatar Quy Quy - change - 10 Mar 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 10 Mar 2020

RTC


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

avatar richard67 richard67 - close - 10 Mar 2020
avatar richard67 richard67 - merge - 10 Mar 2020
avatar richard67 richard67 - change - 10 Mar 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-03-10 19:24:49
Closed_By richard67
Labels Added: ?
avatar richard67
richard67 - comment - 10 Mar 2020

Thanks.

Add a Comment

Login with GitHub to post a comment