id

117

title
pubsub response missing its <items> element when no <item> child
reporter
Adrien
created
19/01/2016, 13:56
updated
19/01/2016, 13:56
labels
core
type
bug
status
queued
priority
normal
milestone
0.7
severity
normal
body

According to http://xmpp.org/extensions/xep-0060.html#subscriber-retrieve-error-items the response to an item request should contain the <items> element, even when there's no <item> child to countain. sat_pubsub with RSM doesn't behave right. To reproduce you can run the tests on sat.src.tmp.wokkel.test.test_rsm. The method test_itemsCount will fail with: File "/home/souliane/workspace/tmp_packages/sat/tmp/wokkel/rsm.py", line 391, in cb for element in pubsub_elt.items.elements(pubsub.NS_PUBSUB, 'item'): exceptions.AttributeError: 'NoneType' object has no attribute 'elements' pubsub_elt.items should be None event if there's no element.

comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_117

You are not logged. You need to log in to comment.