powered by Jive Software

Pubsub : auth problem when trying to configure subscription options

Trying to set the options of a subscription fire a “403 - forbidden” error.

The permissions checks in PubSubEngine.java are not the sames in unsubscribeNode, getSubscriptionConfiguration and configureSubscription. The first one use bare JID, and works, the others the full JID, which send the error.

I fixed this by calling canModify with the bare JID rather than the full : subscription.canModify(iq.getFrom().toBareJID()) instead of subscription.canModify(iq.getFrom())

Hope this can help…