https://bugs.kde.org/show_bug.cgi?id=432156

            Bug ID: 432156
           Summary: KNewFileMenu: cannot create new file for remote
                    protocols like ftp
           Product: frameworks-kio
           Version: 5.78.0
          Platform: Neon Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kio-bugs-n...@kde.org
          Reporter: j...@kdenlive.org
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

Created attachment 135205
  --> https://bugs.kde.org/attachment.cgi?id=135205&action=edit
Cannot create new file

SUMMARY


STEPS TO REPRODUCE
1. Open an FTP location in Dolphin
2. Try to create a new folder or file


OBSERVED RESULT

The "File already exists" popup incorrectly shows up, and the "Ok" button is
disabled, you cannot create files / folders

EXPECTED RESULT

You should be able to create new files / folders

This is most likely fixed by changing the KIO::statDetails parameter in:
https://invent.kde.org/frameworks/kio/-/blob/master/src/filewidgets/knewfilemenu.cpp#L1212

>From the doc, KIO::statDetails cannot reliably check a file existence using
http / ftp protocols. Using "SourceSide" as currently, when the existence
cannot be determined, it is assumed to exist, so we cannot create the new file.

Changing the parameter to DestinationSide, the file is assumed to not exist
when it cannot be determined.



SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to