? Success

User tests: Successful: Unsuccessful:

avatar subtext
subtext
3 Nov 2015

This change will allow document types to accept extensions with
alphanumeric characters such as m4v, mp3, and mp4. Because the JDocument class is loaded from JFactory, it becomes exceedingly difficult to override this behavior in extensions.


In the JFactory class the format variable retrieved from the request uses the 'word' filter which strips out all numeric characters from the variable value and leaves only alpha characters. In order to add document types for video files such as m4v, mp4, etc... this change is needed to JDocument types which include numeric characters. Consider this example:

$link = JRoute::_('index.php?option=com_video&format=m4v&id=y2VLUEh6crVq4hfV');

The router for the custom component returns a link in the form:

http://mysite.com/videos/y2VLUEh6crVq4hfV.m4v

However, following that link you will receive a view not found error message because the "type" variable will be returned as "mv" instead of "m4v" as the filter variable for JInput will strip out the numeric characters.

avatar subtext subtext - open - 3 Nov 2015
avatar subtext subtext - change - 3 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Nov 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 4 Nov 2015
Category Libraries
avatar mxkmp29 mxkmp29 - test_item - 1 Aug 2016 - Tested successfully
avatar mxkmp29
mxkmp29 - comment - 1 Aug 2016

I have tested this item successfully on 5aba7a9

I tested it @icampus wpw,

I cannot reproduce the error but created another link with a numeric character and do a vardump in /libraries/joomla/factory.php in the createDocument to display the type. It was by m4v only m4 because of the 'word' filter. After the patch the filter is working fine.


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

avatar Curiensol Curiensol - test_item - 2 Aug 2016 - Tested successfully
avatar Curiensol
Curiensol - comment - 2 Aug 2016

I have tested this item successfully on 5aba7a9

Tested with vardump, the Error was repeatable, the 4 in .m4v was lost without the Patch.
With the Patch it was there.

@icampus WPW


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

avatar brianteeman brianteeman - change - 2 Aug 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 2 Aug 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 2 Aug 2016
Labels Added: ?
avatar rdeutz
rdeutz - comment - 14 Aug 2016

I would classify this as a bug

avatar rdeutz rdeutz - close - 14 Aug 2016
avatar rdeutz rdeutz - merge - 14 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 14 Aug 2016
avatar rdeutz rdeutz - change - 14 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-14 10:59:33
Closed_By rdeutz
avatar joomla-cms-bot joomla-cms-bot - change - 14 Aug 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment