]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
* updated the invalid test cases to include the
authorJohn (J5) Palmieri <johnp@redhat.com>
Tue, 11 May 2004 18:31:34 +0000 (18:31 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Tue, 11 May 2004 18:31:34 +0000 (18:31 +0000)
  missing PATH header field which is required
* updated the spec documentation to indicate that
  INTERFACE, MEMBER, and PATH are all required fields

16 files changed:
ChangeLog
doc/dbus-specification.xml
test/data/invalid-messages/array-of-nil.message
test/data/invalid-messages/array-with-mixed-types.message
test/data/invalid-messages/bad-boolean-array.message
test/data/invalid-messages/bad-boolean.message
test/data/invalid-messages/bad-endian.message
test/data/invalid-messages/bad-header-field-alignment.message
test/data/invalid-messages/local-namespace.message
test/data/invalid-messages/no-dot-in-name.message
test/data/invalid-messages/not-nul-header-padding.message
test/data/invalid-messages/overlong-name.message
test/data/invalid-messages/too-little-header-padding.message
test/data/invalid-messages/too-much-header-padding-by-far.message
test/data/invalid-messages/too-much-header-padding.message
test/data/invalid-messages/too-short-dict.message

index c15388a36c08d72780d149c47668d7b0ad123554..07095fe3ebfc70f53b0a14d6d3a204c66ba266a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2004-05-11  John (J5) Palmieri  <johnp@redhat.com>:
+
+       * doc/dbus-specification.xml: Added a "Required" column to the 
+       header fields table and changed the "zero or more" verbage in
+       the above paragraph to read "The header must contain the required 
+       named header fields and zero or more of the optional named header 
+       fields".
+       * test/data/invalid-messages/*.message: Added the required PATH 
+       named header field to the tests so that they don't fail on 
+       'Missing path field'
+
 2004-05-07  John (J5) Palmieri  <johnp@redhat.com>
 
        * python/dbus-bindings.pyx.in: Stopped the bindings from trashing
index 412d8ea093d394e3641ec519711acab240f43005..7a09a5cfb07c62f471702c4739a76d8118174ece 100644 (file)
       <para>
         In addition to the required header information mentioned 
         in <xref linkend="message-protocol-header-encoding"/>, 
-          the header may contain zero or more named 
+          the header must contain the required named header
+          fields and zero or more of the optional named 
           header fields. Future versions of this protocol
           specification may add new fields. Implementations must
           ignore fields they do not understand. Implementations
       <para>
         Here are the currently-defined named header fields:
         <informaltable>
-          <tgroup cols="3">
+          <tgroup cols="5">
             <thead>
               <row>
                 <entry>Conventional Name</entry>
                <entry>Decimal Value</entry>
                 <entry>Type</entry>
+                <entry>Required</entry>
                 <entry>Description</entry>
               </row>
             </thead>
                 <entry>INVALID</entry>
                <entry>0</entry>
                 <entry>INVALID</entry>
+                <entry>no</entry>
                 <entry>Not a valid field name (error if it appears in a message)</entry>
               </row>
               <row>
                 <entry>PATH</entry>
                <entry>1</entry>
                 <entry>OBJECT_PATH</entry>
+                <entry>yes</entry>
                 <entry>The object to send the message to; objects are identified by 
                 a path, "/foo/bar"</entry>
               </row>
                 <entry>INTERFACE</entry>
                <entry>2</entry>
                 <entry>STRING</entry>
+                <entry>yes</entry>
                 <entry>The interface to invoke a method call on, or 
                 that a signal is emitted from. e.g. "org.freedesktop.Introspectable"</entry>
               </row>
                 <entry>MEMBER</entry>
                <entry>3</entry>
                 <entry>STRING</entry>
+                <entry>yes</entry>
                 <entry>The member, either the method name or signal name. 
                 e.g. "Frobate"</entry>
               </row>
                 <entry>ERROR_NAME</entry>
                <entry>4</entry>
                 <entry>STRING</entry>
+                <entry>no</entry>
                 <entry>The name of the error that occurred, for errors</entry>
               </row>
               <row>
                 <entry>REPLY_SERIAL</entry>
                <entry>5</entry>
                 <entry>UINT32</entry>
+                <entry>no</entry>
                 <entry>The serial number of the message this message is a reply
                 to. (The serial number is one of the mandatory header fields,
                 see <xref linkend="message-protocol-header-encoding"/>.)</entry>
                 <entry>DESTINATION</entry>
                <entry>6</entry>
                 <entry>STRING</entry>
+                <entry>no</entry>
                 <entry>The name of the service this message should be routed to. 
                 Only used in combination with the message bus, see 
                 <xref linkend="message-bus"/>.</entry>
                 <entry>SENDER</entry>
                <entry>7</entry>
                 <entry>STRING</entry>
+                <entry>no</entry>
                 <entry>Sender service. The name of the base service that sent
                 this message.  The message bus fills in this field; the field is
                 only meaningful in combination with the message bus.</entry>
index 7f0ac71874966ab7d85f3e5dfcf56af58a0760c7..1197a13625f41ff743791d02526d9733c6ced5e3 100644 (file)
@@ -8,6 +8,9 @@ STRING 'org.freedesktop.Foo'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH 
+OBJECT_PATH '/foo'
 
 ALIGN 8
 END_LENGTH Header
index 4455c898a784af6539934680de0706bae18cb36e..dea2d1e568b359687957601b7452f6414e623ce7 100644 (file)
@@ -9,6 +9,9 @@ STRING 'org.freedesktop.Foo'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
 
 ALIGN 8
 END_LENGTH Header
index 91ad5ef1c14701b6da3d0dd28eb88b6d82b6660a..48000afd7bc3f37a9a3ccc0cf1e8136b837bca15 100644 (file)
@@ -9,6 +9,9 @@ STRING 'org.freedesktop.Foo'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
 
 ALIGN 8
 END_LENGTH Header
index cd588ad8a89f11c26a6cab4abba66bfa73b57dfd..09026db8348b4482725fc56669920ea1796f82dd 100644 (file)
@@ -9,6 +9,9 @@ STRING 'org.freedesktop.Foo'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
 
 ALIGN 8
 END_LENGTH Header
index 8d6092445143a6596e11fcd2f22cc34bc0c84bc3..e979baae6f6ccbc87442fb37e49cd39c3931350e 100644 (file)
@@ -14,6 +14,9 @@ STRING 'org.freedesktop.Foo'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
 
 ALIGN 8
 END_LENGTH Header
index 75776a37058845f6ddb637af12a37428f1289fcf..22c0d7eec7cca56bca463fd7bc60a6bba0c8d902 100644 (file)
@@ -11,6 +11,10 @@ HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
 
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
+
 HEADER_FIELD UNKNOWN
 TYPE STRING
 STRING 'a'
index dad98a775e1121fcb5eeefceb3f0bcfced4d9aad..f42b5c6ac3771d2abe09037553a2b566fa1d19c1 100644 (file)
@@ -10,6 +10,9 @@ STRING 'org.freedesktop.Local'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Disconnected'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
 
 ALIGN 8
 END_LENGTH Header
index 131be05d86b1a614606b162be85436641acd27d4..6d6317a5a55d1ccbf3f5e852abadf2868261a3bc 100644 (file)
@@ -9,6 +9,9 @@ STRING 'NoDotInHere'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
 
 ALIGN 8
 END_LENGTH Header
index a12c0fa790a3eef1be6351f43add032f6b5619f9..be846da0ddbbc3b4a08b1941be146e6a57645bdf 100644 (file)
@@ -9,6 +9,9 @@ STRING 'org.freedesktop.Foo'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
 
 HEADER_FIELD UNKNOWN
 TYPE STRING
index 4fd7025e22019877e3a34f99383820f26d723d23..c1f9079068fcdc43c1b0b3b627603d6d9c00e50f 100644 (file)
@@ -10,6 +10,10 @@ HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
 
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
+
 ALIGN 8
 END_LENGTH Header
 START_LENGTH Body
index 894e4c3eee9ea0b845a1880cd6f4d96fdd7faa02..358815a56f203c22023c0c6dfb1bebcd607c5144 100644 (file)
@@ -9,6 +9,9 @@ STRING 'org.freedesktop.Foo'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
 
 HEADER_FIELD UNKNOWN
 TYPE STRING
index b74f559b4c524adc77bb3e551b22509fe462a668..2d2be3a595e0f51683ffc98eaff1cbbffe0fae96 100644 (file)
@@ -9,6 +9,9 @@ STRING 'org.freedesktop.Foo'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
 
 HEADER_FIELD UNKNOWN
 TYPE STRING
index 01111b63a4236f01ba84afdf88d569ddccbe362a..0b1c294c4dfa8dfe285541f77a6153ec3e592cd9 100644 (file)
@@ -9,6 +9,9 @@ STRING 'org.freedesktop.Foo'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
 
 HEADER_FIELD UNKNOWN
 TYPE STRING
index fde88850881198fdfb3595797e2bd143fd4cce6d..ffc3cc529fae70bb3988bce26698de9fba9cd761 100644 (file)
@@ -8,6 +8,9 @@ STRING 'org.freedesktop.Foo'
 HEADER_FIELD MEMBER
 TYPE STRING
 STRING 'Bar'
+HEADER_FIELD PATH
+TYPE OBJECT_PATH
+OBJECT_PATH '/foo'
 
 ALIGN 8