Menu

#5107 File Manager using UNC path as filename

1.880
open
nobody
None
5
2018-03-29
2018-03-29
DJ
No

When uploading files through the File Manager from a Windows machine, the full path of the file (including backslashes and the actual) filename from the Windows machine is used as the filename instead (aka, the UNC name). Using the rename command in File Manager this new filename appears but without backslashes. Attempting to rename the file brings up the message 'Can not rename the file. This might happen because the source file has been removed or due to restricted permissions.'

The Java File Manager however uploads the files fine. The issue is apparently on two Ubuntu servers created earlier this month on Ubuntu Server 16.04.4 LTS

2 Attachments

Discussion

  • Ilia Rostovtsev

    Ilia Rostovtsev - 2018-03-29

    Hi,

    I have just tried to upload the file using Edge browser and it just worked fine without adding source path to it. The result was - only the file name.

    It's hard to emagine why this would happen. Using both slashes in file name is not recommended.

     
  • DJ

    DJ - 2018-03-29

    Also using Edge. When selecting the file, I am clicking to browse and just selecting the file as I don't have the option to type it. The slashes are just being entered automatically from the path, as of course Windows doesn't support slashes in file names. Very odd indeed. :/

    Strange that you don't get it the two machines I setup do. Suggests something is different on my machines, but the only thing that I can imagine that would be different from a just out of the box machine is proxy settings, which I wouldn't have thought would have an impact. LAMP and SSH were selected to be installed, but that's pretty standard.

     
  • Ilia Rostovtsev

    Ilia Rostovtsev - 2018-03-29

    I sounds to me that it's your actual Windows installation, not server-side.

    Could you try other client-side OS/browser?

     
  • DJ

    DJ - 2018-03-29

    Confirmed, working fine using Firefox and Chrome it appears to upload fine... though it bugs me that my Edge doesn't and yours does. ;) Cheers.

     
  • Ilia Rostovtsev

    Ilia Rostovtsev - 2018-03-29

    This is odd. Is there incognito mode in Edge? Could you try that?

     
  • DJ

    DJ - 2018-03-29

    There is an InPrivate mode, unfortauntely same issue as normal mode on Edge. Though at least others browsers work fine. :)

     
  • Ilia Rostovtsev

    Ilia Rostovtsev - 2018-03-29

    I intentionally tested it only at Edge - no issue, like I mentioned before.

    I'll try later with proxy setup, but I doubt that it's related at all.

     
  • Kay

    Kay - 2018-03-29

    what about adding code in upload to check for filenames looking like a full path?
    IMHO everything before a slash and a backslash can be safely removed.
    s/^.*[\/\\]//``

     

    Last edit: Kay 2018-03-29
  • Ilia Rostovtsev

    Ilia Rostovtsev - 2018-03-29

    It looks like working around the problem.

    This shouldn't be happening.

     

Log in to post a comment.

Auth0 Logo