Bug 296893 - The licence.txt file cannot be added to the activity screen
Summary: The licence.txt file cannot be added to the activity screen
Status: RESOLVED FIXED
Alias: None
Product: Active
Classification: Plasma
Component: Contour activity screen (show other bugs)
Version: PA 2
Platform: Meego/Harmattan Linux
: NOR normal
Target Milestone: unscheduled
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-27 16:34 UTC by Fania Bremmer
Modified: 2013-02-05 18:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fania Bremmer 2012-03-27 16:34:43 UTC
On 2012-03-27-15-24-basyskom-plasma-active-testing-meego-usb-live.iso

- Open an activity
- Try to add different documents like pdf, text and csv
- all files can be add except the "Licence.txt"

(Question on the side: why do we offer this licence.txt at all in the add resource dialog?)
Comment 1 Lamarque V. Souza 2012-03-27 16:45:31 UTC
This bug is a duplicate of https://bugs.kde.org/show_bug.cgi?id=292820

I managed to fix the case where .doc were not added by upgrading  libstreamanalyzer to libstreamanalyzer-0.7.7-1.1.Project.KDE.Devel.i586, which is the one in the image you tested. There must be something else wrong in the file indexer.

The License.txt comes along with the Jamendo sample songs and if I recall correctly the license requires us to keep them together.
Comment 2 Fania Bremmer 2012-04-04 13:01:32 UTC
still happens on: 2012-04-04-11-10-basyskom-plasma-active-testing-meego-usb-live.iso 

its not exactly a duplicate, because in the bug from thomas the resource couldnt be added after searching for it.

in this case it just didnt get added, even after selecting it from the normal "Documents" tab.
The strange thing is that the other .txt files can be added like "Readme - www.ja....txt"
Comment 3 Lamarque V. Souza 2012-04-04 13:18:45 UTC
(In reply to comment #2)
> its not exactly a duplicate, because in the bug from thomas the resource
> couldnt be added after searching for it.
> 
> in this case it just didnt get added, even after selecting it from the
> normal "Documents" tab.

Adding a resource always end up in nepomuk in despite of where the action comes from. Both the search feature and Documents tab use nepomuk to fill in the resource list and to add the selected resource to the activity, so in the background they are the same thing.

> The strange thing is that the other .txt files can be added like "Readme -
> www.ja....txt"

Yes, that almost random why this happens. It seems to be related to file indexing (only happens with resources of type file) and soprano (the resource is added to nepomuk but not in soprano's database). Re-indexing the file one or two times fixes the problem for that file.
Comment 4 Lamarque V. Souza 2012-04-16 16:42:09 UTC
I added a patch to kdelibs in obs that seems to workaround this problem:

https://build.pub.meego.com/package/view_file?file=kdelibs-workaround_add_items_problem.diff&package=kdelibs&project=Project%3AKDE%3ADevel&rev=295

The patch is very simple but I want to make sure if it really works, so I am adding to obs instead of pushing to kdelibs repo.
Comment 5 Thomas Pfeiffer 2013-02-05 18:28:09 UTC
Fixed. I can add license.txt now.