#826 Return <identity category="account" type="registered"/> on users bare JIDs
What steps will reproduce the problem?
1. Have a prosody contact in your roster.
2. Send a disco#info request.
What is the expected output? What do you see instead?
Expected: <identity category="account" type="registered"/> plus possibly PEP.
Got: Only <identity category="pubsub" type="pep"/>
What version of the product are you using? On what operating system?
Please provide any additional information below.
This also happens for 0.9.10-1 on Ubuntu.
Reference XEP-0030 § 4.1: When an entity sends a disco#info request to a bare JID (<email@example.com>) hosted by a server, the server itself MUST reply on behalf of the hosted account, either with an IQ-error or an IQ-result. For important rules regarding access to this functionality, see the Security Considerations section of this document. In particular, in response to a disco#info request sent to a bare JID with no node, if access is not denied the server SHOULD return an IQ-result for the bare JID, in which the primary identity SHOULD have a category of "account" with an appropriate type as specified in the Service Discovery Identities registry (most likely, a type of "registered"). Note: This enables authorized or trusted entities to discover whether the account exists and its account type (e.g., in IM systems to determine the existence of an account before adding it to a contact's roster).