Projects tigase _server tigase-pubsub Issues #13
Check whether REST API call for publish-item gives a clear error if node does not exist (#13)
Artur Hefczyc opened 1 decade ago

We need to make sure we get a clearly distinct error if the PubSub node does not exist on publish item, so the application can discover this and create a new node for example.

Unknown commented 1 decade ago

Applied in changeset tigase-pubsub|commit:2466c51a130a3530bec36ed1690ef084c2cb8258.

Andrzej Wójcik (Tigase) commented 1 decade ago

I modified adhoc command scripts and REST scripts to return errors also in format described in XMPP specification. Only difference in adhoc scripts errors is that they return stanza with type result but with error element added to return stanza. This error element contains error description. REST scripts processing this result will return only error element in case of error in following format:

<error type="cancel">
    <item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Node test-123 needs to be created before an item can be published.</item-not-found>
</error>
Referenced from commit 1 year ago
#18 #19 #12 #13 #15 #21 #22
git-svn-id: file:///home/svn/repos/tigase-pubsub/trunk@43 ea752f3b-7626-48e1-ae42-c030457b2254
Bartosz Małkowski committed 2 decades ago
Referenced from commit 1 year ago
issue 1 of 1
Type
Task
Priority
Major
Assignee
RedmineID
1668
Spent time
2h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-pubsub#13
Please wait...
Page is in error, reload to recover