Bug 294566 - Don't use PDF titles as resource names
Summary: Don't use PDF titles as resource names
Status: RESOLVED FIXED
Alias: None
Product: Active
Classification: Unmaintained
Component: Contour activity screen (show other bugs)
Version: unspecified
Platform: Meego/Harmattan Linux
: NOR wishlist
Target Milestone: unscheduled
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-21 14:48 UTC by Thomas Pfeiffer
Modified: 2012-04-24 00:37 UTC (History)
2 users (show)

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


Attachments
Here one can see that some resources are called "untitled" or "Microsoft Word" (345.94 KB, image/png)
2012-02-21 14:48 UTC, Thomas Pfeiffer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Pfeiffer 2012-02-21 14:48:17 UTC
Created attachment 68978 [details]
Here one can see that some resources are called "untitled" or "Microsoft Word"

Version:           unspecified (using Devel) 
OS:                Linux

The title meta-information of PDF files (the one Okular uses as window title for example) is nonsensical in many PDFs, because authors mostly seem to not care about them and just take whatever their application puts in there (things like "Microsoft Word" or "Title" are quite common).
However they sometimes replace the filenames as resource name in the Add Items dialog and Activity screen as soon as I open the PDF in Okular (for some reason this is not always the case).
This makes the resource names pretty much useless for these files, since changing the title is far more complicated than changing the file name.

Reproducible: Sometimes

Steps to Reproduce:
Connect a PDF with a set title to an activity.
Open it in Okular


Actual Results:  
In some cases, the resource is renamed to the PDF title

Expected Results:  
The filename should remain the resource name.

Image used: 2012-01-31-15-30-basyskom-plasma-active-devel-meego with updates from Feb. 20
Comment 1 Lamarque V. Souza 2012-04-09 19:36:23 UTC
Git commit 5498d493408b4fe22a74685b674055f123cfc958 by Lamarque V. Souza.
Committed on 09/04/2012 at 21:33.
Pushed by lvsouza into branch 'master'.

Do not use PDF titles as resource names.

M  +6    -1    components/metadatamodel/metadatamodel.cpp

http://commits.kde.org/plasma-mobile/5498d493408b4fe22a74685b674055f123cfc958
Comment 2 Lamarque V. Souza 2012-04-09 19:48:53 UTC
Git commit 40e9ed48355dcd056735227565be9f6126ff40bf by Lamarque V. Souza.
Committed on 09/04/2012 at 21:33.
Pushed by lvsouza into branch 'Active/2.1'.

Do not use PDF titles as resource names.
(cherry picked from commit 5498d493408b4fe22a74685b674055f123cfc958)

M  +6    -1    components/metadatamodel/metadatamodel.cpp

http://commits.kde.org/plasma-mobile/40e9ed48355dcd056735227565be9f6126ff40bf
Comment 3 Lamarque V. Souza 2012-04-24 00:37:27 UTC
Works in 2012-04-23-16-57-basyskom-plasma-active-testing-meego-usb-live.iso