Closed cprigent closed 11 years ago
Log from media console:
root.search('Type derivedfrom "image"', 0, 90, ["DisplayName","Path", "URLs","Restricted"], "-DisplayName")
....
....
{
"DisplayName": "KelibiaUploaded",
"Path": "/com/intel/MediaServiceUPnP/server/22/6d616c2f492f414d322f323635",
"Restricted": 1,
"URLs": [
"http://192.168.2.105:53346/fitj/no/mal/I/AM2/265.jpg"
]
}
{
"DisplayName": "KelibiaUploaded",
"Path": "/com/intel/MediaServiceUPnP/server/22/6d616c2f492f414c31332f323635",
"Restricted": 1,
"URLs": [
"http://192.168.2.105:53346/fitj/no/mal/I/AL13/265.jpg"
]
}
{
"DisplayName": "KelibiaUploaded",
"Path": "/com/intel/MediaServiceUPnP/server/22/6d616c2f492f4d5931342f323635",
"Restricted": 0,
"URLs": [
"http://192.168.2.105:53346/fitj/no/mal/I/MY14/265.jpg"
]
}
Hi Christophe,
I think this should be a bug for dLeyna-server shouldn't it? Also I'm not sure it's a bug. Golden DMS seems to maintain multiple references to the files it publishes so that the file is duplicated in multiple folders. My guess is that you can delete the original file but not the references, hence the different values for restricted.
So what you want to do is to search for the original file and to exlude the references. You can do this by modifying the search string.
'Type derivedfrom "image" and RefPath exists false'
I think this is correct. I haven't got my development machine with me so I can't test. If it doesn't work check with Ludo.
Hopefully you will only see one file with restricted set to 0.
You might need brackets
'(Type derivedfrom "image") and (RefPath exists false)'
Try both. One should work.
Setup:
::: SYSTEM Description: Ubuntu 12.10 Codename: quantal Distributor ID: Ubuntu Release: 12.10 Mozilla Firefox 18.0.2
::: PACKAGES LIST gssdp-1.0 v0.14.2 gupnp-1.0 v0.20.2 gupnp-av-1.0 v0.12.1 gupnp-dlna-2.0 v0.10.0 dleyna-core-1.0 v0.0.2 dleyna-renderer-1.0 v0.0.2 dleyna-server-1.0 v0.0.2 dleyna-server-service-1.0 v0.0.2 dleyna-renderer-service-1.0 v0.0.2 Cloudeebus version 0.3.1
::: REPOSITORIES
- COMMIT ID: 21128b92a9f1e8f8f5d200552843b2a61fbae973
- COMMIT ID: e177d2171e5cc5e564dd2c3c8aec70b38acee454
- COMMIT ID: 6f3a016df59c5b827a0f2bbd72e4ca6b49674325
- COMMIT ID: 5c67be7bc73f37e1ffe441a8442e238e9a97d68b
- COMMIT ID: a2c581bd17d44662ab0e635228a6567226d99650
- COMMIT ID: b786e09e7ddf4325fcd84a6bdebdd1800c57a12e
- COMMIT ID: 1e5e0bde3250af0278f3839057564ce24aa905e3
- COMMIT ID: d53eba90bf4eb3192a79cf1cd003072d3bf50753
- COMMIT ID: a5ddb997f235541485d47e613ea5ad39b6f6077d
Pre-conditions:
Steps:
1 Use cloud-dleyna to upload "Kelibia.jpg" to Golden DMS as "KelibiaUploaded" 2 From media console execute command: root.search('Type derivedfrom "image"', 0, 90, ["DisplayName","Path", "URLs","Restricted"], "-DisplayName") 3 Check the restricted property of the file uploaded
Actual result:
3 In fact I see 3 "KelibiaUploaded" with restricted set to 0 or 1
Expected result
3 Restricted should be set to 0
Info
The problem is you can't remove the file. Cloud-dleyna displays: "Destroy Object operation failed: Restricted object (DestroyObject)"