After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 752484 - rss: error on adding the same feeds from separate resources
rss: error on adding the same feeds from separate resources
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Miners
git master
Other Linux
: Normal normal
: ---
Assigned To: tracker-general
tracker-general
Depends on:
Blocks:
 
 
Reported: 2015-07-16 13:18 UTC by Igor Gnatenko
Modified: 2016-03-28 23:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rss: Account for a same feed message coming from different channels (1.70 KB, patch)
2015-07-16 23:33 UTC, Carlos Garnacho
none Details | Review

Description Igor Gnatenko 2015-07-16 13:18:11 UTC
try to add http://planet.gnome.org/rss20.xml and http://planet.gnome.org/atom.xml

(tracker-miner-rss:32571): Tracker-CRITICAL **: Could not insert feed information for message titled:'Network management workflow (or, GSoC report #4)', GDBus.Error:org.freedesktop.Tracker1.SparqlError.Internal: UNIQUE constraint failed: nie:DataObject.nie:url (strerror of errno (not necessarily related): No such file or directory)
Comment 1 Carlos Garnacho 2015-07-16 23:33:10 UTC
The following fix has been pushed:
832baf7 rss: Account for a same feed message coming from different channels
Comment 2 Carlos Garnacho 2015-07-16 23:33:15 UTC
Created attachment 307593 [details] [review]
rss: Account for a same feed message coming from different channels

Unfortunately the nmo:communicationChannel docs are very explicit about
the property cardinality. So we just create the mfo:FeedMessage for
the first channel, and make it bail out any next time it would be
added, from the same mfo:FeedChannel or another.
Comment 3 Igor Gnatenko 2015-07-17 08:07:14 UTC
(In reply to Carlos Garnacho from comment #2)
> Created attachment 307593 [details] [review] [review]
> rss: Account for a same feed message coming from different channels
> 
> Unfortunately the nmo:communicationChannel docs are very explicit about
> the property cardinality. So we just create the mfo:FeedMessage for
> the first channel, and make it bail out any next time it would be
> added, from the same mfo:FeedChannel or another.

What will happens if we will kill channel? Will it stay while some other channel uses it?
Comment 4 Igor Gnatenko 2015-07-17 09:09:17 UTC
I mean what will happens with mfo:FeedMessage which connected to 2 channels. Will it killed if one channel killed.

Yes, it will. So it's a bug ;)
Comment 5 Carlos Garnacho 2016-03-28 23:30:49 UTC
(Shortly) after this bug was reported the nmo:communicationChannel cardinality changed, fixing this remaining issue. See commit 04d5d945.