Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roster item with subscription 'none' doesn't have subscription attribute #1590

Closed
davideko opened this issue Mar 5, 2017 · 3 comments
Closed

Comments

@davideko
Copy link

davideko commented Mar 5, 2017

What version of ejabberd are you using?

17.01

What operating system (version) are you using?

ubuntu 14.04 LTS

How did you install ejabberd (source, package, distribution)?

distribution

What did not work as expected? Are there error messages in the log? What
was the unexpected behavior? What was the expected result?

By doing this fetch roster IQ in Ejabberd 17.01 :

<iq id='r1h3vzp7' type='get'>
  <query xmlns='jabber:iq:roster'/>
</iq>

Expected

...
  <item subscription='none' name='aloy' jid='aloy@lalala.id'/>
...

Actual

...
  <item name='aloy' jid='aloy@lalala.id'/>
...

I think that's a bug, because in the Ejabberd version < 16.12 it's always contain subscription attribute even it's subscription is none

@zinid
Copy link
Contributor

zinid commented Mar 5, 2017

From RFC6121, Secion 2.1.2.5:

none:  the user does not have a subscription to the contact's
      presence, and the contact does not have a subscription to the
      user's presence; this is the default value, so if the subscription
      attribute is not included then the state is to be understood as
      "none"
...
Inclusion of the 'subscription' attribute is OPTIONAL

@zinid zinid closed this as completed Mar 5, 2017
@davideko
Copy link
Author

davideko commented Mar 5, 2017

Thank you for the explanation @zinid !

@davideko davideko changed the title Roster item with subscription 'none' doesn't have subscribe attribute Roster item with subscription 'none' doesn't have subscription attribute Mar 6, 2017
@lock
Copy link

lock bot commented Jun 11, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants