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 729090 - All resource uri's are not preserved by createObject
All resource uri's are not preserved by createObject
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: librygel-server
git master
Other All
: Normal normal
: ---
Assigned To: rygel-maint
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2014-04-28 09:26 UTC by Richard Röjfors
Modified: 2014-05-01 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for adding all resources uri's to the media items (849 bytes, patch)
2014-04-28 09:26 UTC, Richard Röjfors
none Details | Review
server: Extract all resources on object creation (1.16 KB, patch)
2014-05-01 13:20 UTC, Jens Georg
committed Details | Review

Description Richard Röjfors 2014-04-28 09:26:01 UTC
Created attachment 275304 [details] [review]
Patch for adding all resources uri's to the media items

The ObjectCreator only adds the URI of the first resource to the mediaitems passed to the containers for creation.

Sometimes it's beneficial to have all.

The provided patch loops over all resources and adds their uri's
Comment 1 Jens Georg 2014-04-29 18:59:49 UTC
Hm. Depending on the backend, we only persist one anyways.
Comment 2 Richard Röjfors 2014-04-29 20:02:22 UTC
I see cases where a non http URI is used in a rygel content directory.
Rygel adds in an own http uri with for instance a base64 encoded object ID as the firs one.

If this object is passed to createobject, the original uri disappears and only the added http uri is passed to the container during create. In my backend it would be very handy to get the original URI. I thought this might be useful for others too.
Comment 3 Jens Georg 2014-05-01 13:20:40 UTC
Created attachment 275539 [details] [review]
server: Extract all resources on object creation

Signed-off-by: Jens Georg <mail@jensge.org>
Comment 4 Jens Georg 2014-05-01 13:21:34 UTC
Changed the syntax a bit
Comment 5 Jens Georg 2014-05-01 13:21:50 UTC
Attachment 275539 [details] pushed as ba2c811 - server: Extract all resources on object creation