? Pending

User tests: Successful: Unsuccessful:

avatar Anu1601CS
Anu1601CS
3 Jan 2018

###Issue

File and folder name not displaying properly.
The file path is showing in the place of the filename.

Summary of Changes

Changes in:
plugins/filesystem/local/Adapter/LocalAdapter.php

Testing Instructions

Open media manager and check out.

Expected result

1

Actual result

2

Documentation Changes Required

avatar Anu1601CS Anu1601CS - open - 3 Jan 2018
avatar Anu1601CS Anu1601CS - change - 3 Jan 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jan 2018
Category Front End Plugins
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Jan 2018

Without Pull Request have no Issue:

bildschirmfoto 2018-01-03 um 13 49 27

System information

4.0-dev
Sample Data
macOS Sierra, 10.12.6
Firefox 57 (64-bit)

MAMP 4.2

  • Apache-Server
  • PHP 7.0.22
  • MySQLi 5.6.35
avatar Anu1601CS
Anu1601CS - comment - 3 Jan 2018

@franz-wohlkoenig but I am getting this issue


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

avatar joomdonation
joomdonation - comment - 3 Jan 2018

It is an issue on Windows, I can confirm it. Haven't looked at the code yet but maybe you should make PR on this repo https://github.com/joomla-projects/media-manager-improvement

avatar Anu1601CS
Anu1601CS - comment - 3 Jan 2018

@joomdonation yes, I am using windows.


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

avatar Anu1601CS
Anu1601CS - comment - 3 Jan 2018

ok, I am going to make PR to media-manager-improvement


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

avatar joomdonation
joomdonation - comment - 3 Jan 2018

Without testing much, I think proper fix would be change code to:

private function getFileName($path)
{
	$path = \JPath::clean($path);

	// Basename does not work here as it strips out certain characters like upper case umlaut u
	$path = explode(DIRECTORY_SEPARATOR, $path);

	// Return the last element
	return array_pop($path);
}

It should work on both Windows and Linux

avatar Anu1601CS
Anu1601CS - comment - 3 Jan 2018

@joomdonation Yes this one is a proper fix for this issue thanks


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

avatar Anu1601CS
Anu1601CS - comment - 3 Jan 2018

Should I make a PR to media-manager-improvement with these changes?


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

avatar joomdonation
joomdonation - comment - 3 Jan 2018

I think so. Look like media manager is still being developed on it own repo, so better make PR on https://github.com/joomla-projects/media-manager-improvement

avatar Anu1601CS
Anu1601CS - comment - 3 Jan 2018

@joomdonation Thanks

avatar Anu1601CS Anu1601CS - change - 3 Jan 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-01-03 13:14:55
Closed_By Anu1601CS
Labels Added: ?
avatar Anu1601CS Anu1601CS - close - 3 Jan 2018

Add a Comment

Login with GitHub to post a comment