Bug 175322

Summary: import from camera: unable to create new folders
Product: [Applications] digikam Reporter: Daniel Welch <danielwelch>
Component: Import-AlbumsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: anaselli, gronslet, jmtemmos+kde, thomas
Priority: NOR    
Version: 0.10.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 0.10.0
Sentry Crash Report:
Attachments: console output - 350d import failure
screen shot eos 350d import failure

Description Daniel Welch 2008-11-16 20:05:06 UTC
Version:           0.10.0-beta3 (using 4.1.2 (KDE 4.1.2), Mandriva Linux release 2009.0 (Official) for i586)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.4-desktop586-2mnb

Issue arises when using the import wizard to download cr2 (Canon Raw) files form my EOS 350d/Rebel XT.

I have the settings to import the files into a new sub-folder, based on ISO date.

The folder seems to be created in the 'root' folder  of my catalog, (in my case, this is /media/pictures) rather than as a sub folder in the album into which I am attempting to import.

The import then fails, with the message that the folder could not be created.
Comment 1 caulier.gilles 2008-11-16 20:53:19 UTC
Please try agin using last beta5 available.

Gilles Caulier
Comment 2 Daniel Welch 2008-11-17 13:21:26 UTC
Hi

Is it in the Mandriva 2009 repo's? I can wait until it is, and update then, and re-check.

if bug is fixed in beta 5, happy to mark as fixed and re-open if required.

Dan
Comment 3 caulier.gilles 2008-11-17 13:28:33 UTC
We release source tarballs, not pre-compiled packages. For Mandriva 2009.0, i don't know. i compile myself all (:=)))... 

Gilles Caulier
Comment 4 Daniel Welch 2008-11-17 22:39:19 UTC
added 'Testing' repo and downloaded 0.10.0-1Beta5.1mdv2009.0 versions of digikam, libdigikam1, and libdigikamdata1. #
digikam -v results in 
Qt: 4.4.3 
KDE: 4.1.2 (KDE 4.1.2) 
digiKam: 0.10.0-beta5 

Bug is still present as described.

Attaching screenshot and console output.
Comment 5 Daniel Welch 2008-11-17 22:41:36 UTC
Created attachment 28648 [details]
console output - 350d import failure
Comment 6 Daniel Welch 2008-11-17 22:42:08 UTC
Created attachment 28649 [details]
screen shot eos 350d import failure
Comment 7 Marcel Wiesweg 2008-11-29 17:42:19 UTC
*** Bug 175401 has been marked as a duplicate of this bug. ***
Comment 8 caulier.gilles 2008-12-03 13:04:55 UTC
Daniel,

I think this problem have been fixed with 0.10.0-beta6. Can you try with this version ?

Gilles Caulier
Comment 9 Angelo Naselli 2008-12-03 14:24:30 UTC
i'll take a look at it tonight as well, but i'm quite sure i used svn version, last week and it was still present...
Comment 10 Thomas Rasmussen 2008-12-04 10:23:32 UTC
I have tried with beta6 from Mandriva, and the bug is still present!!
Comment 11 Marcel Wiesweg 2008-12-05 19:41:10 UTC
*** Bug 176972 has been marked as a duplicate of this bug. ***
Comment 12 Marcel Wiesweg 2008-12-06 13:36:38 UTC
*** Bug 171953 has been marked as a duplicate of this bug. ***
Comment 13 Mikolaj Machowski 2008-12-08 17:19:33 UTC
Confirming for 0.10b7svn.
Comment 14 Marcel Wiesweg 2008-12-13 16:11:36 UTC
SVN commit 896440 by mwiesweg:

Remove the trailing slash, if any, in these cases.

CCBUG: 175322

 M  +3 -3      collectionmanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=896440
Comment 15 Angelo Naselli 2008-12-14 00:00:06 UTC
hmm it still doesn't work here :(
my error is "An existing album has the same name."
I've added some prints to get info:
digikam(22641) Digikam::AlbumManager::createPAlbum: albumPath  "/2008-10-19"  parent->albumPath() "/"  parent->isAlbumRoot()  true  parent->albumRootId()  1                    
digikam(22641) Digikam::AlbumManager::createPAlbum: Album data child albumRootId  1  albumRootId  1  child->albumPath()  "/2008-10-19"  albumPath  "/2008-10-19"
LC_ALL=C svn info
Path: .
URL: svn+ssh://anaselli@svn.kde.org/home/kde/trunk/extragear/graphics/digikam
Repository Root: svn+ssh://anaselli@svn.kde.org/home/kde
Repository UUID: 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Revision: 896606
Node Kind: directory
Schedule: normal
Last Changed Author: mwiesweg
Last Changed Rev: 896575
Last Changed Date: 2008-12-13 21:47:41 +0100 (Sat, 13 Dec 2008)
Comment 16 Angelo Naselli 2008-12-14 00:09:43 UTC
for the record, my album should be created under:
/home/angelo/Pictures/Foto/2008/11
as confirmed by:
digikam(22641) Digikam::CollectionManager::locationForPath: Testing location  1 "/home/angelo/Pictures/Foto/2008/11" "/home/angelo/Pictures"
Comment 17 Marcel Wiesweg 2008-12-14 15:40:31 UTC
SVN commit 896825 by mwiesweg:

Give correct parent album rather than only the album root path to createPAlbum.
Angelo, my initial testing was too narrow (it worked for direct album under album root)
Please confirm that it works now.

CCBUG: 175322

 M  +1 -3      cameraui.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=896825
Comment 18 caulier.gilles 2008-12-16 16:29:27 UTC
Angelo,

Please check if last commit from Marcel fix the problem. Thanks in advance...

Gilles
Comment 19 Thomas Rasmussen 2008-12-21 23:09:41 UTC
Confirming that problem is fixed in 0.10 Beta 7
Comment 20 caulier.gilles 2008-12-22 06:32:12 UTC
Thomas,

Thanks for the report. I close this file now.

Gilles Caulier