[rygel] core: 'dlnaManaged' must not be set by client



commit 918a964cad2d43fa18b5aa2586cd8968da895be6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Apr 13 18:05:28 2011 +0300

    core: 'dlnaManaged' must not be set by client
    
    'dlnaManaged' attribute must not be set by client on newly created item.
    
    This satisfies DLNA CTT testcase 7.3.133.6.

 src/rygel/rygel-item-creator.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-item-creator.vala b/src/rygel/rygel-item-creator.vala
index a73656d..03cf0db 100644
--- a/src/rygel/rygel-item-creator.vala
+++ b/src/rygel/rygel-item-creator.vala
@@ -70,6 +70,12 @@ internal class Rygel.ItemCreator: GLib.Object, Rygel.StateMachine {
                 throw new ItemCreatorError.PARSE (message, this.elements);
             }
 
+            if (didl_item.dlna_managed != 0) {
+                throw new ContentDirectoryError.BAD_METADATA
+                                        ("Attribute 'dlnaManaged' must not" +
+                                         " be set");
+            }
+
             var container = yield this.fetch_container ();
 
             this.item = this.create_item (didl_item.id,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]