Bug 320157

Summary: Skrooge not working when .skg file is located on Samba share
Product: [Applications] skrooge Reporter: slodki <slodki_dom>
Component: generalAssignee: Guillaume DE BURE <guillaume.debure>
Status: VERIFIED FIXED    
Severity: major CC: stephane
Priority: NOR Keywords: needs_verification, reproducible
Version: 1.7.1   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Error pop-up

Description slodki 2013-05-23 07:30:03 UTC
When storing Skrooge files on local disk all works ok. But if I try to move data files on samba share app cannot open file.

Reproducible: Always

Steps to Reproduce:
1. Start with new file (File->New
2. Save on Samba share (File->Save->select dir on mounted Samba share
3. After saving restart Skrooge
4. Skrooge is trying to load last saved file...
Actual Results:  
[ERR-5]: filed to open 'filename'
File not loaded

Expected Results:  
.skg file loaded into Skrooge.

Mount options from fstab:
grep dokumenty /etc/fstab
//nas/dokumenty /mnt/dokumenty  cifs    credentials=/etc/samba/private/nas,uid=user,gid=plugdev,file_mode=0664,dir_mode=0775,noexec

ls -l /mnt/dokumenty/test1.skg
-rw-rw-r-- 1 user plugdev 309266 maj 23 09:12 /mnt/dokumenty/test1.skg

Samba server:
Maintainer: Debian Samba Maintainers <pkg-samba-maint@lists.alioth.debian.org>
Architecture: armel
Version: 2:3.5.15-njnetgear1
Comment 1 slodki 2013-05-23 07:31:43 UTC
Created attachment 80033 [details]
Error pop-up
Comment 2 slodki 2013-05-23 07:38:14 UTC
Nothing special in traces.txt:
##WARNING: COMMIT;
##         returns :database is locked Unable to fetch row
##WARNING: delete from doctransaction where id=7
##         returns :database is locked Unable to fetch row
##WARNING: ANALYZE
##         returns :database is locked Unable to fetch row
##WARNING: COMMIT;
##         returns :database is locked Unable to fetch row
##WARNING: delete from doctransaction where id=7
##         returns :database is locked Unable to fetch row
##WARNING: COMMIT;
##         returns :database is locked Unable to fetch row
##WARNING: delete from doctransaction where id=7
##         returns :database is locked Unable to fetch row
##WARNING: COMMIT;
##         returns :database is locked Unable to fetch row
##WARNING: delete from doctransaction where id=7
##         returns :database is locked Unable to fetch row
##WARNING: COMMIT;
##         returns :database is locked Unable to fetch row
##WARNING: delete from doctransaction where id=7
##         returns :database is locked Unable to fetch row
Comment 3 Stephane MANKOWSKI 2013-05-25 16:33:21 UTC
Git commit 4a5472fb1f91c5d804458020e509efd624db534c by Stephane Mankowski.
Committed on 25/05/2013 at 18:33.
Pushed by smankowski into branch 'master'.
Skrooge not working when .skg file is located on Samba share

Hi,
I am not able to test the correction because I don't have to hardware (windows computer) to do it.
Could you test it and confirm the correction?

M  +1    -0    CHANGELOG
M  +2    -2    skgbasemodeler/skgdocument.cpp

http://commits.kde.org/skrooge/4a5472fb1f91c5d804458020e509efd624db534c
Comment 4 slodki 2013-05-26 23:50:48 UTC
I've tested on 2 different samba servers:
a) Linux 2.6.22.19 (router, mips) with Samba 3.0.37
b) Linux 2.6.31.8 (NAS, Debian armv5tel) with Samba 3.5.15

On both now skrooge (running on i686 linux) works with files on mounted CIFS shares.
Not tested on windows (I don't have skrooge running on windows nor shares hosted by windows).