Uploaded image for project: 'Smack'
  1. Smack
  2. SMACK-645

Roster should not leak internal state e.g. presences

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.7
    • Fix Version/s: 4.1.0
    • Component/s: IM

      Description

      See http://stackoverflow.com/questions/13929394/unable-to-change-presence-status-of-my-user-with-smack where a users modifies the Presence instances returned by Roster. Since those are not clones (and not immutable), those modifications are done directly on the internal state of Roster and persistent.

      Roster should return copied presences instead (at least until Smack has immutable stanzas, which appears to not happening anytime soon).

        Attachments

          Activity

            People

            Assignee:
            flow Florian Schmaus
            Reporter:
            flow Florian Schmaus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: