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 683926 - Titles of uploaded files are incorrect
Titles of uploaded files are incorrect
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: MediaExport plugin
git master
Other Linux
: Normal normal
: ---
Assigned To: Krzesimir Nowak
rygel-maint
ivi
Depends on:
Blocks:
 
 
Reported: 2012-09-13 07:48 UTC by Mark Ryan
Modified: 2013-04-05 12:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Prefers titles set by CreateObject or UpdateObject calls. (20.14 KB, patch)
2013-03-01 10:33 UTC, Krzesimir Nowak
committed Details | Review

Description Mark Ryan 2012-09-13 07:48:15 UTC
Hi,

I'm trying to upload a file to the Rygel DMS using the MediaExport backend.   The file uploads correctly and is exported by the DMS once the upload has finished.  The problem is that the title of the file is incorrect after the upload.  It does not correspond to the dc:title value I specified in the DIDL fragment I passed to CreateObject.

My DIDL fragment looks like this

<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/">
  <item id="" parentID="DLNA.ORG_AnyContainer" restricted="0">
    <dc:title>Money</dc:title>
    <upnp:class>object.item.imageItem</upnp:class>
    <res protocolInfo="*:*:image/jpeg:*"/>
   </item>
</DIDL-Lite>

( I realise the DLNA Profile is not specified but it should still work right? )

A subsequent browse of the DMS reveals that the name of the newly uploaded file is cbf7e0d7-f806-48c6-8c06-d17ef0528195-Money and not Money as I was expecting.
Comment 1 Jens Georg 2012-09-13 08:09:37 UTC
Currently the (guessed) information from the file wins. We need to change that so that only some information is overridden, such as size & duration.
Comment 2 Krzesimir Nowak 2013-03-01 10:33:39 UTC
Created attachment 237693 [details] [review]
Prefers titles set by CreateObject or UpdateObject calls.
Comment 3 Mark Ryan 2013-03-07 09:35:26 UTC
I realise that this is a bit late but I think there might be a problem with this patch.  I can confirm that the names of the uploaded files are now correct.  However, I can no longer view the uploaded files in a DMP.  The reason is that these files do not have a URL.

If I quit Rygel and restart it, 3 new files appear.  These files have meaningless names, e.g., 454fb4fc-0033-4f44-b688-91a73fd0f2dd-B-JPEG_M-16.jpg, but they do contain URLs that point to the files that I uploaded.  The files that I uploaded are still present and are still broken.

What's the process here?  Should we reopen this bug or should I create a new one?