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

Attachments

1

Activity

Show:

Daryl Herzmann February 15, 2012 at 1:48 PM

r12994 thanks for the patch

Fixed

Details

Assignee

Reporter

Ignite Forum URL

Components

Fix versions

Affects versions

Priority

Created February 15, 2012 at 1:42 PM
Updated October 28, 2020 at 1:26 PM
Resolved February 15, 2012 at 1:48 PM