GNOME Bugzilla – Bug 683926
Titles of uploaded files are incorrect
Last modified: 2013-04-05 12:56:38 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.
Currently the (guessed) information from the file wins. We need to change that so that only some information is overridden, such as size & duration.
Created attachment 237693 [details] [review] Prefers titles set by CreateObject or UpdateObject calls.
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?