[standards-jig] JEP-0060 PubSub: 5.2.1 Configure a node

Bob Wyman bob at wyman.us
Fri Feb 14 22:58:01 UTC 2003


    Now that V0.7 of JEP-0060 allows initial configuration to be done in
the same stanza as a node creation, I think there is a small
modification that needs to be made to "5.2.1 Configure a node."
    The problem is that in order to pass configuration information in
the same stanza as a creation request, you must first know what
configuration items are supported by the server. As currently specified,
it appears that you can only discover configuration item once you have
actually created a node. 
    However, if you have not yet created a node, you can't request a
configuration form for it... Thus, it would seem that what is specified
in Example 50 needs to be modified to either allow the node attribute to
be null, or to specify some "well-known" node name that cannot otherwise
be created -- such as "new-node". 
	One of the following needs to be supported:

1) Null attribute method:
<iq type="get" from="pgm at jabber.org" to="pubsub.jabber.org"
id="config1">
  <pubsub xmlns="http://jabber.org/protocol/pubsub">
    <configure node=""/>
  </pubsub>
</iq>

2) "well-known" node method
<iq type="get" from="pgm at jabber.org" to="pubsub.jabber.org"
id="config1">
  <pubsub xmlns="http://jabber.org/protocol/pubsub">
    <configure node="new-node"/>
  </pubsub>
</iq>

In either case, the server would respond with whatever is a valid
configuration form for a node that is to be newly created.

		bob wyman




More information about the Standards mailing list