Bug 449685 - Could not rename partial file smb://file.part
Summary: Could not rename partial file smb://file.part
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 21.12.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-06 05:35 UTC by iain.mason
Modified: 2022-02-11 22:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iain.mason 2022-02-06 05:35:55 UTC
SUMMARY
***
Unable to save modified file on Samba server
***


STEPS TO REPRODUCE
1. Open existing file on Samba server
2. Edit file
3. Save file

OBSERVED RESULT
Kate opens file OK
Kate create file.part file OK
Kate errors with pop-up saying

Could not rename partial file smb://iain@chaplin/users/iain/Package_Building/wireshark/getsrc.part.
Please check permissions.

EXPECTED RESULT
getsrc is replaced by getsrc.part

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Slackware 15.0 
(available in About System)
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION

Kernel 5.15.19 (64-bit)

ls -la (on server)
drwxr-xr-x  2 iain users 4096 Feb  6 05:22 ./
drwxr-xr-x 35 iain users 4096 Feb  6 04:40 ../
-rwxr-xr-x  1 iain users   40 Feb  6 05:21 getsrc*
-rwxr--r--  1 iain users   81 Feb  6 05:22 getsrc.part*
-rwxr--r--  1 iain users  152 Jan 27 02:56 slack-desc*
-rwxr--r--  1 iain users 3742 Jan 28 02:31 wireshark.SlackBuild*

I can delete the getsrc.part file in Dolphin.
However, trying to delete getsrc returns

Internal Error
Please send a full bug report at https://bugs.kde.org
Unknown error condition: [16] Device or resource busy

Trying to delete the getsrc file AFTER this error succeeds.

Could the Kate problem be related to an issue in Dolphin hold an unexpected lock on "getsrc"?
Comment 1 remcoluit 2022-02-08 22:19:58 UTC
Same problem here, also commented in this thread https://bugs.kde.org/show_bug.cgi?id=445976#c6
And here https://www.linuxquestions.org/questions/slackware-14/requests-for-current-14-2-15-0-a-4175620463/page653.html#post6324249

But unfortunately it is now in the 15 release of Slackware. 

When opening the same file from Thunar and opening with Kate it is working as expected, seems to be Dolphin and Krusader that are no longer working with Samba. Also LibreOffice files opened from Dolphin can't be saved when edited.
Comment 2 remcoluit 2022-02-11 17:09:55 UTC
Slackware-current is now on 21.12.2 and it seems to be working again as expected.
Comment 3 Christoph Cullmann 2022-02-11 22:05:07 UTC
> Slackware-current is now on 21.12.2 and it seems to be working again as expected.

I close this then ATM as works again.
If that is wrong, please re-open.