[jdev] Pubsub questions
Peter Saint-Andre
stpeter at jabber.org
Wed Feb 1 17:35:14 CST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matt Tucker wrote:
> Hello all,
>
> A couple of pubsub questions:
>
> 1) In section "14.4.3 pubsub#node_config FORM_TYPE" the fields
> "pubsub#collection" and "pubsub#node_type" are defined. They both seem
> to be asking the same question -- whether a node is a leaf or a
> collection. What's the difference between the two fields? Should one be
> used over another?
Those configuration options are incorrectly specified -- I have fixed
them in the provisional version 1.8. In particular:
1. pubsub#collection is used to specify the collection with which a node
is affiliated, not whether the node is a collection node or leaf node.
2. pubsub#node_type has been deprecated in favor of specifying the
'type' attribute in the node creation request.
> 2) The standard data form has options to set the node type to either be
> a collection or leaf (see question #1). So... is it legal to change a
> node from a leaf to a collection or vice vera after it's been created?
> If this isn't allowed, what error code should be returned --
> <forbidden/>? Switching the node type could be a pretty expensive
> operation.
The text was in error. The node type is not specified via the
configuration form, so it cannot be changed that way. The only way to do
so would be to destroy the old node and create a new one.
Peter
- --
Peter Saint-Andre
Jabber Software Foundation
http://www.jabber.org/people/stpeter.shtml
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFD4UWxNF1RSzyt3NURAmoPAKCLNBlnMDPyZk0o1WY2offSRQ8AaQCgsKHA
1Jq29aeWjzmE9zDYytd5Lyw=
=8MiN
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3641 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.jabber.org/jdev/attachments/20060201/0aa62b42/attachment-0002.bin>
More information about the JDev
mailing list