[ejabberd] Pubsub Node Configuration Bugs

Nathan Fritz nathanfritz at gmail.com
Tue Jun 17 00:15:45 MSD 2008


If I attempt do the following w/ 2.0.1:

1. Create a pubsub node with the default configuration
2. Retrieve the configuration
3. Send a new configuration (with or without changes)
4. Attempt to retrieve the configuration for said node a 2nd time

I receive an internal-server-error response instead of the x-data form for
configuration.

This bug appears to be noted at
https://support.process-one.net/browse/EJAB-508 but is Closed.  It looks
like this fix should have been in 2.0.0, but I am running 2.0.1.

Here is my I/O log:

COMM     SEND: <iq to="server.tld" type="set" id="44C"
from="user at server.tld/Resource"><pubsub
> xmlns="http://jabber.org/protocol/pubsub"><create node="node33"
> /><configure /></pubsub></iq>
>
> COMM     RECV: <iq from='server.tld' to='user at server.tld/Resource'
> id='44C' type='result'/>
>
> COMM     SEND: <iq to="server.tld" type="get" id="44F"
> from="user at server.tld/Resource"><pubsub xmlns="
> http://jabber.org/protocol/pubsub#owner"><configure node="node33"
> /></pubsub></iq>
>
> COMM     RECV: <iq from='server.tld' to='user at server.tld/Resource'
> id='44F' type='result'><pubsub xmlns='
> http://jabber.org/protocol/pubsub#owner'><configure node='node33'><x
> xmlns='jabber:x:data' type='form'><field type='hidden' label=''
> var='FORM_TYPE'><value>http://jabber.org/protocol/pubsub#node_config</value></field><field
> type='boolean' label='Deliver payloads with event notifications'
> var='pubsub#deliver_payloads'><value>1</value></field><field type='boolean'
> label='Deliver event notifications'
> var='pubsub#deliver_notifications'><value>1</value></field><field
> type='boolean' label='Notify subscribers when the node configuration
> changes' var='pubsub#notify_config'><value>0</value></field><field
> type='boolean' label='Notify subscribers when the node is deleted'
> var='pubsub#notify_delete'><value>0</value></field><field type='boolean'
> label='Notify subscribers when items are removed from the node'
> var='pubsub#notify_retract'><value>0</value></field><field type='boolean'
> label='Persist items to storage'
> var='pubsub#persist_items'><value>0</value></field><field type='text-single'
> label='Max # of items to persist'
> var='pubsub#max_items'><value>10</value></field><field type='boolean'
> label='Whether to allow subscriptions'
> var='pubsub#subscribe'><value>1</value></field><field type='list-single'
> label='Specify the access model'
> var='pubsub#access_model'><option><value>open</value></option><option><value>authorize</value></option><option><value>presence</value></option><option><value>roster</value></option><option><value>whitelist</value></option><value>presence</value></field><field
> type='text-multi' label='Roster groups allowed to subscribe'
> var='pubsub#roster_groups_allowed'/><field type='list-single' label='Specify
> the publisher model'
> var='pubsub#publish_model'><option><value>publishers</value></option><option><value>subscribers</value></option><option><value>open</value></option><value>publishers</value></field><field
> type='text-single' label='Max payload size in bytes'
> var='pubsub#max_payload_size'><value>60000</value></field><field
> type='list-single' label='When to send the last published item'
> var='pubsub#send_last_published_item'><option><value>never</value></option><option><value>on_sub</value></option><option><value>on_sub_and_presence</value></option><value>on_sub_and_presence</value></field><field
> type='boolean' label='Only deliver notifications to available users'
> var='pubsub#presence_based_delivery'><value>1</value></field></x></configure></pubsub></iq>
>
> COMM     SEND: <iq to="server.tld" type="set" id="450"
> from="user at server.tld/Resource"><pubsub xmlns="
> http://jabber.org/protocol/pubsub#owner"><configure node="node33"><x
> xmlns="jabber:x:data" type="submit"><field var="FORM_TYPE"
> type="hidden"><value>http://jabber.org/protocol/pubsub#node_config</value></field><field
> var="pubsub#deliver_payloads" type="boolean"><value>1</value></field><field
> var="pubsub#deliver_notifications"
> type="boolean"><value>1</value></field><field var="pubsub#notify_config"
> type="boolean"><value>0</value></field><field var="pubsub#notify_delete"
> type="boolean"><value>0</value></field><field var="pubsub#notify_retract"
> type="boolean"><value>0</value></field><field var="pubsub#persist_items"
> type="boolean"><value>0</value></field><field var="pubsub#max_items"
> type="text-single"><value>10</value></field><field var="pubsub#subscribe"
> type="boolean"><value>1</value></field><field var="pubsub#access_model"
> type="list-single"><value>presence</value></field><field
> var="pubsub#roster_groups_allowed" type="text-multi" /><field
> var="pubsub#publish_model"
> type="list-single"><value>publishers</value></field><field
> var="pubsub#max_payload_size"
> type="text-single"><value>60000</value></field><field
> var="pubsub#send_last_published_item"
> type="list-single"><value>on_sub_and_presence</value></field><field
> var="pubsub#presence_based_delivery"
> type="boolean"><value>1</value></field></x></configure></pubsub></iq>
>
> COMM     RECV: <iq from='server.tld' to='user at server.tld/Resource'
> id='450' type='result'/>
>
> COMM     SEND: <iq to="server.tld" type="get" id="453"
> from="user at server.tld/Resource"><pubsub xmlns="
> http://jabber.org/protocol/pubsub#owner"><configure node="node33"
> /></pubsub></iq>
>
> COMM     RECV: <iq from='server.tld' to='user at server.tld/Resource'
> id='453' type='error'><error code='500' type='wait'><internal-server-error
> xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error><pubsub xmlns='
> http://jabber.org/protocol/pubsub#owner'><configure
> node='node33'/></pubsub></iq>


Also (unrelated), I get an inappropriate response when requesting the
default configuration:

 COMM SEND: <iq to="server.tld" type="get" id="44B"
from="user at server.tld/Resource"><pubsub
> xmlns="http://jabber.org/protocol/pubsub#owner"><default /></pubsub></iq>
>
> COMM RECV: <iq from='server.tld' to='user at server.tld/Resource' id='44B'
> type='error'><error code='404' type='cancel'><item-not-found
> xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error><pubsub xmlns='
> http://jabber.org/protocol/pubsub#owner'><default/></pubsub></iq>
>

Thanks for your time!
-Nathan Fritz
-Seesmic XMPP Dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jabber.ru/pipermail/ejabberd/attachments/20080616/26f46e0c/attachment-0001.htm 


More information about the ejabberd mailing list