[Bug 294602] New: On import, sub-subfolders cannot be created

classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 294602] New: On import, sub-subfolders cannot be created

Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

           Summary: On import, sub-subfolders cannot be created
           Product: digikam
           Version: 2.5.0
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Import
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           2.5.0 (using KDE 4.8.0)
OS:                Linux

I prefer to organize my folders (=albums) by date:
Album_root/2012/02/22/photo.jpg

So when I import photos, it would be helpful if the subfolders (02 and 22)
could be created automatically according to the EXIF date.

Reproducible: Always

Steps to Reproduce:
1) Launch the Import Tool
2) Select photos
3) Check the "Date-based sub-albums" and set a Date format to "yyyy/MM/dd"
4) Click on the download button
5) A popup ask when you want to import the photo
6) Choose the album root folder

Actual Results:  
An error popup says:
Album name cannot contain '/'.
(see attached capture)

Expected Results:  
The subfolders needed by the imported photo should be created silently and
corresponding photos imported into them.

OS: Linux (i686) release 3.2.0-17-generic-pae
Compiler: gcc

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 294602] On import, sub-subfolders cannot be created

Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602





--- Comment #1 from Mathieu MD <mathieu md gmail com>  2012-02-22 09:27:09 ---
Created an attachment (id=68999)
 --> (http://bugs.kde.org/attachment.cgi?id=68999)
Error popup

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 294602] On import, sub-subfolders cannot be created

xstej70
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #2 from [hidden email] ---
I too would like to use "yyyy/MM".

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 294602] On import, sub-subfolders cannot be created

howerkraft
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #3 from [hidden email] ---
I would like too see this too.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 294602] On import, sub-subfolders cannot be created

Gilles Caulier-4
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #4 from Gilles Caulier <[hidden email]> ---
As we have re-written a lots of code in Import tool this summer through GoSC
2012, The entry must be checked again with current digiKam 3.0.0-beta3 (not yet
stable), at least to perform regression tests.

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 294602] On import, sub-subfolders cannot be created

xstej70
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

--- Comment #5 from [hidden email] ---
Hello Gilles,

I've just tested it with 3.0.0-beta3 and the error is still the same as in the
attached example.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 294602] On import, sub-subfolders cannot be created

Gilles Caulier-4
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.5.0                       |3.0.0

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] On import, sub-subfolders cannot be created

xstej70
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

--- Comment #6 from [hidden email] ---
I've just tested version 3.0.0 and the popup is the same.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] On import, sub-subfolders cannot be created

ianp5a
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #7 from [hidden email] ---
Still a problem in release 3.0.
This folder structure is automatically created in Shotwell, Rapid Downloader,
Picasa and others. People moving to Digikam from these want to maintain their
structure.

See also:
http://sourceforge.net/tracker/?func=detail&aid=3610922&group_id=42641&atid=433763

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] On import, sub-subfolders cannot be created

Gilles Caulier-4
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

--- Comment #8 from Gilles Caulier <[hidden email]> ---
Please report this sourceforge bug details in KDE bugzilla. We NEVER use
SFbugtracker...

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] On import, sub-subfolders cannot be created

ianp5a
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #9 from [hidden email] ---
*** This bug has been confirmed by popular vote. ***

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] On import, sub-subfolders cannot be created

alan.millen
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #10 from [hidden email] ---
As a workaround until this gets fixed, you can actually make the import work
by:
1. Create the empty folders tree in advance (by script or by hand)
2. Use double forward slash in the Check the Date format, e.g. to
"yyyy//MM//dd"

Hope this helps ease the pain.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] On import, sub-subfolders cannot be created

Teemu Rytilahti
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

Teemu Rytilahti <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #11 from Teemu Rytilahti <[hidden email]> ---
*** Bug 298035 has been marked as a duplicate of this bug. ***

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] On import, sub-subfolders cannot be created

Teemu Rytilahti
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

Teemu Rytilahti <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #12 from Teemu Rytilahti <[hidden email]> ---
My comment from the another bug: Starting point for fixing this would be
ImportUI::createSubAlbum(KUrl& downloadUrl, const QString& subalbum, const
QDate& date) or createAutoAlbum() in the same class, in case support for
folders should be wanted.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] On import, sub-subfolders cannot be created

Henrique Santos Fernandes
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

Henrique Santos Fernandes <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #13 from Henrique Santos Fernandes <[hidden email]> ---
I am using digikam 4.0.0

I have the same "problem"

When i import images, i wont it to be organized like this:

[Folder of year ] / [Folder of month] / [Folder of day ] / [ Picture of the
day]

An example would be like this:
Took a picture 2014-12-25 named picture1.jpeg

When i import the files i want it to be store in my albuns like this:

/home/user/album/2014/12/25/picture1.jpeg

As explained in the description:

Reproducible: Always

Steps to Reproduce:
1) Launch the Import Tool
2) Select photos
3) Check the "Date-based sub-albums" and set a Date format to "yyyy/MM/dd"
4) Click on the download button
5) A popup ask when you want to import the photo
6) Choose the album root folder

Actual Results:  
An error popup says:
Album name cannot contain '/'.
(see attached capture)

Expected Results:  
The subfolders needed by the imported photo should be created silently and
corresponding photos imported into them.

And as explained by Alan:

As a workaround until this gets fixed, you can actually make the import work
by:
1. Create the empty folders tree in advance (by script or by hand)
2. Use double forward slash in the Check the Date format, e.g. to
"yyyy//MM//dd"

But i guess is not pretty to have to create manually the folder to make it work

So i guess would not be hard to fix, just check if there is a '/' and create
folders if it does not exists.

Thanks

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] Sub sub-folders separated with '/' in file path cannot be created with album selection dialog

Gilles Caulier-4
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|On import, sub-subfolders   |Sub sub-folders separated
                   |cannot be created           |with '/' in file path
                   |                            |cannot be created with
                   |                            |album selection dialog

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] Sub sub-folders separated with '/' in file path cannot be created with album selection dialog

Jimmy
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

Jimmy <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #14 from Jimmy <[hidden email]> ---
Created attachment 89714
  --> https://bugs.kde.org/attachment.cgi?id=89714&action=edit
Implement subfolder creation for albums

Here's a patch that implements the exact functionality requested. This is my
first patch to the KDE bugtracker.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] Sub sub-folders separated with '/' in file path cannot be created with album selection dialog [patch]

Gilles Caulier-4
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Sub sub-folders separated   |Sub sub-folders separated
                   |with '/' in file path       |with '/' in file path
                   |cannot be created with      |cannot be created with
                   |album selection dialog      |album selection dialog
                   |                            |[patch]

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] Sub sub-folders separated with '/' in file path cannot be created with album selection dialog [patch]

Teemu Rytilahti
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

Teemu Rytilahti <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |http://commits.kde.org/digi
                   |                            |kam/c28cd005a979aa4c3731c18
                   |                            |3ec6376707c10d5a8
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #15 from Teemu Rytilahti <[hidden email]> ---
Git commit c28cd005a979aa4c3731c183ec6376707c10d5a8 by Teemu Rytilahti.
Committed on 05/12/2014 at 14:49.
Pushed by rytilahti into branch 'master'.

ImportUI: Allow creation of subfolder when importing by creating parents
recursively.

Thanks for the patch Jimmy!

M  +2    -1    NEWS
M  +21   -4    utilities/importui/main/importui.cpp

http://commits.kde.org/digikam/c28cd005a979aa4c3731c183ec6376707c10d5a8

--
You are receiving this mail because:
You are the assignee for the bug.


Make the world a better place. Donate to our year end fundraiser https://www.kde.org/fundraisers/yearend2014/
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 294602] Sub sub-folders separated with '/' in file path cannot be created with album selection dialog [patch]

Teemu Rytilahti
In reply to this post by Bugzilla from mathieu.md@gmail.com
https://bugs.kde.org/show_bug.cgi?id=294602

Teemu Rytilahti <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |4.6.0

--
You are receiving this mail because:
You are the assignee for the bug.


Make the world a better place. Donate to our year end fundraiser https://www.kde.org/fundraisers/yearend2014/
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel