simogeo / Filemanager

An open-source file manager released under MIT license. Up-to-date for PHP connector. This package is DEPRECATED. Now, please use RichFileManager available at : https://github.com/servocoder/RichFilemanager.
938 stars 350 forks source link

Problems with deleting or renaming a folder #518

Closed th-schwarz closed 7 years ago

th-schwarz commented 7 years ago

While testing a new version of my java-backend, I've found a strange issue. If I try to delete or rename a folder, the Filemanger creates a wrong request. Example: I've got the following directory structure: '/mib_folder/sub' ("fileRoot": "/userfiles/"). If I want to delete the folder 'sub', the followig request is built: http://localhost:8080/filemanager/connectors/java/filemanager.java?mode=delete&path=%2Fuserfiles%2Fmib_folder%2Fsub%2Fsub%2F&time=848&config=filemanager.config.json

In the query-string the folder 'sub' is found two times. That's wrong.

I've tested it with the current master and with 2.5.0. In your live-demo it works correct.

I've compared the json-response for the getfolder-mode on my system and your live-demo. and they are equals: { "\/userfiles\/mib_folder\/sub\/": { "Code": 0, "Error": "", "File Type": "dir", "Filename": "sub", "Path": "\/userfiles\/mib_folder\/sub\/", "Preview": "\/filemanager\/images\/fileicons\/_Open.png", "Properties": { "Date Created": null, "Date Modified": "10\/30\/16", "Height": null, "Size": null, "Width": null }, "Protected": 0 } }

Is there anyone who has a hint for me? Btw: I've got the same behaviour for the renaming-mode.

th-schwarz commented 7 years ago

sorry, - the problem was between my ears