GNOME Bugzilla – Bug 729090
All resource uri's are not preserved by createObject
Last modified: 2014-05-01 13:21:54 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
Hm. Depending on the backend, we only persist one anyways.
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.
Created attachment 275539 [details] [review] server: Extract all resources on object creation Signed-off-by: Jens Georg <mail@jensge.org>
Changed the syntax a bit
Attachment 275539 [details] pushed as ba2c811 - server: Extract all resources on object creation