You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Michael Jakl (JIRA)" <ji...@apache.org> on 2009/07/05 13:52:14 UTC

[jira] Updated: (VYSPER-92) Stanzas don't get enriched with a "from" Attribute when the client omits it.

     [ https://issues.apache.org/jira/browse/VYSPER-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Jakl updated VYSPER-92:
-------------------------------

    Attachment: VYSPER-92.1.patch

Find attached the fix that works for me. To add the "from" attribute to the stanza, I had to loosen the unmodifiable set. Why make it so hard to change the stanza?

Anyway, the unmodifiable property was only set for lists that contained an element, if an empty list was given it was modifiable. I've opted to remove the restriction.

Please review the patch, it works for me, but touches on the very core of Vysper.

> Stanzas don't get enriched with a "from" Attribute when the client omits it.
> ----------------------------------------------------------------------------
>
>                 Key: VYSPER-92
>                 URL: https://issues.apache.org/jira/browse/VYSPER-92
>             Project: VYSPER
>          Issue Type: Bug
>          Components: core protocol
>            Reporter: Michael Jakl
>            Assignee: Bernd Fondermann
>         Attachments: VYSPER-92.1.patch
>
>
> RFC3920 9.1.2:
> When a server receives an XML stanza within the context of an authenticated stream qualified by the 'jabber:client' namespace, it MUST do one of the following:
>    1. validate that the value of the 'from' attribute provided by the client is that of a connected resource for the associated entity
>    2. add a 'from' address to the stanza whose value is the bare JID (<no...@domain>) or the full JID (<node@domain/resource>) determined by the server for the connected resource that generated the stanza (see Determination of Addresses).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.