#1657 traceback in util.pubsub on publish

Reporter Zash
Owner Zash
Created
Updated
Stars ★ (1)
Tags
  • Type-Defect
  • Status-Fixed
  • Priority-Medium
  • Milestone-0.11
  1. Zash on

    What steps will reproduce the problem? 1. ??? 2. Publish something in PEP? What is the expected output? No traceback What do you see instead? /usr/lib/prosody/util/pubsub.lua:558: attempt to index local 'node_data' (a nil value) stack traceback: /usr/lib/prosody/util/pubsub.lua:558: in function 'publish' /usr/lib/prosody/modules/mod_pubsub/pubsub.lib.lua:595: in function 'handler' /usr/lib/prosody/modules/mod_pubsub/pubsub.lib.lua:291: in function </usr/lib/prosody/modules/mod_pubsub/pubsub.lib.lua:278> (...tail calls...) /usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75> (...tail calls...) /usr/lib/prosody/modules/mod_iq.lua:38: in function '?' /usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75> (...tail calls...) /usr/lib/prosody/core/stanza_router.lua:180: in function 'core_post_stanza' /usr/lib/prosody/core/stanza_router.lua:127: in function 'core_process_stanza' /usr/lib/prosody/modules/mod_c2s.lua:284: in function 'func' /usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125> What version of the product are you using? On what operating system? Version: 0.11.9-1 Please provide any additional information below. Reported by Ron in the chat

  2. Zash on

    Traceback should be prevented by https://hg.prosody.im/0.11/rev/087b275a9aee Probably better fix in https://hg.prosody.im/trunk/rev/3986b5a0c3fc The commits following this one correct the behavior of persist_items, so the absence of the "node_data" should be normal for such nodes.

    Changes
    • tags Status-Fixed
    • owner Zash

New comment

Not published. Used for spam prevention and optional update notifications.