Bug 294566

Summary: Don't use PDF titles as resource names
Product: [Plasma] Active Reporter: Thomas Pfeiffer <thomas.pfeiffer>
Component: Contour activity screenAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: wishlist CC: active, lamarque
Priority: NOR    
Version: unspecified   
Target Milestone: unscheduled   
Platform: Meego/Harmattan   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Here one can see that some resources are called "untitled" or "Microsoft Word"

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