Allow users to get their own presence via presence plugin

Description

If Presence visibility is set to Subscribed, then it's not possible to query ones OWN presence. We're using the plugin from a server and this gives unavailable.

http://host:9090/plugins/presence/status?jid=user@domain&req_jid=user@domain

which seems overly secure It's because you are not in your own roster, so the call to presenceManager.canProbePresence() fails.

I patched the PresencePlugin.java to support query of self if in Subscribed mode.

Patch attached.

Environment

None

Activity

Show:
Daryl Herzmann
February 15, 2012, 1:48 PM

r12994 thanks for the patch

Fixed

Assignee

Daryl Herzmann

Reporter

Daryl Herzmann