Bug 308442 - Images are not associated to album if album name contains &
Summary: Images are not associated to album if album name contains &
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Piwigo (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-15 15:11 UTC by Kef
Modified: 2018-02-01 05:27 UTC (History)
2 users (show)

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


Attachments
Album name correctly appears in Piwogo Export dialog (43.43 KB, image/png)
2012-10-15 15:11 UTC, Kef
Details
Test album created in Piwigo to demonstrate the bug (8.37 KB, image/png)
2012-10-15 15:12 UTC, Kef
Details
Administration page showing the properly uploaded but orphan image (16.91 KB, image/png)
2012-10-15 15:13 UTC, Kef
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kef 2012-10-15 15:11:04 UTC
Created attachment 74561 [details]
Album name correctly appears in Piwogo Export dialog

When using the Piwigo Export Plugin to export images to an album whose name contains the HTML entity &, the album name appears correctly in the export dialog (i.e. "Cats & Dogs"), the images are properly uploaded to Piwigo (see below), but are not associated to the album: 

 * On the Piwigo site, the album appears empty after the import.
 * When going into the administration section and into "Photos -> Batch Manager" and using  "Predefined Filter: With no album", the imported images appear in the list. From there, they can be associated to the album manually.

I have only seen this behavior occur with albums containing & in their name. While there are obvious workarounds (not using HTML entities in album titles for starters), it would still be nice if the import worked seamlessly for such albums.

Reproducible: Always

Steps to Reproduce:
1. In Piwigo, create a new album whose title contains & (i.e. Cats & Dogs)
2. Upload any image to that Piwigo server using the plugin (the album name should appear correctly as 'Cats & Dogs' in the list of albums).
3. Check the album on Piwigo: it should be empty.
4. Confirm, via Piwigo's administration page, that the image was uploaded properly, just not associated to the album.

Actual Results:  
Image was uploaded but not associated to any album.

Expected Results:  
Images should be associated to the album selected in the albums list displayed in the Piwigo Export dialog.
Comment 1 Kef 2012-10-15 15:12:45 UTC
Created attachment 74562 [details]
Test album created in Piwigo to demonstrate the bug
Comment 2 Kef 2012-10-15 15:13:23 UTC
Created attachment 74563 [details]
Administration page showing the properly uploaded but orphan image
Comment 3 Kef 2012-10-15 15:18:32 UTC
*sigh* Guess it took setting up a whole test case to only THEN discover the even more obvious: using '&' in place of '&' works just as it should. That's another lesson in humility, one shouldn't try to be too clever. Apologies.