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

XEP-0402: Fix issues found during Stockholm XMPP Sprint #835

Merged
merged 15 commits into from
Oct 15, 2019

Conversation

linkmauve
Copy link
Member

@linkmauve linkmauve commented Sep 28, 2019

This PR might be more easily read commit per commit.

Rendered version: https://linkmauve.fr/extensions/xep-0402.html

I was extremely surprised at the difference of treatment for notifications between publishing an item (XEP-0060 §7.1.2.1) and purging all items (§8.5.2), both sending a notification if the node is configured for that, and retracting an item (§7.2.2.1) where the publisher additionally has to include a notify='1' attribute on the <retract/> element.

Another issue we’ve identified during the Sprint is password migration, as much as I dislike this feature there are existing MUCs being protected by passwords, and we most likely keep those until we decide on either removing this feature from MUC altogether, or find a more secure way to store passwords on the server.

Otherwise, this specification is pretty nice and should be ready for advancing to draft soon I think.

@iNPUTmice
Copy link
Contributor

In order not to replace old bookmarks when pushing a new one, we need to request a good max_items value. This one has been picked as some random large enough number, bikeshed welcome!

Also all clients will have to agree on one value because otherwise your preconditons will constantly fail when other clients have used a different value before. Which in turn means we really need support for max_items=0 to mean server side max.

@Ppjet6 Ppjet6 added the Needs Author The XEP is experimental and the PR was not made by the author. The author needs to acknowledge it. label Sep 28, 2019
@Ppjet6
Copy link
Contributor

Ppjet6 commented Sep 28, 2019

This is for @dwd and/or @jcbrand to review.

@Ppjet6 Ppjet6 removed the request for review from horazont September 28, 2019 20:01
linkmauve and others added 14 commits September 29, 2019 01:37
In order not to replace old bookmarks when pushing a new one, we need to
request a good max_items value.  This one has been picked as some random
large enough number, bikeshed welcome!

TODO: add support for unlimited values?
TODO: Add the justification for that.
PubSub §7.2.2.1 says “If no error occurs and the <retract/> element
included a 'notify' attribute with a value of "true" or "1", then the
service MUST delete the item and MUST notify all subscribers as shown
below.”

This means the publishing entity, not the server or the subscription
state, is responsible for properly enabling notifications to other
resources, which makes no sense.

See https://xmpp.org/extensions/xep-0060.xml#publisher-delete-success-notify
There is no rationale for this, and as it overrides the room name
“forever” it shouldn’t necessarily be encouraged.
Make it a SHOULD that it joins MUCs on retrieval of autojoin='1'
bookmarks, leaves them on autojoin='0' or no autojoin, and does the same
when it’s the one modifying the bookmarks.
Copy link
Contributor

@jcbrand jcbrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I have some suggestions related to language and grammer.

xep-0402.xml Outdated Show resolved Hide resolved
xep-0402.xml Outdated Show resolved Hide resolved
xep-0402.xml Outdated Show resolved Hide resolved
xep-0402.xml Show resolved Hide resolved
xep-0402.xml Show resolved Hide resolved
@linkmauve
Copy link
Member Author

I fixed the English issues, thanks for giving me a nice explanation!

@jcbrand
Copy link
Contributor

jcbrand commented Oct 14, 2019

@linkmauve LGTM

@Ppjet6 Ppjet6 added Ready To Merge No acknowledgements of other parties are needed anymore. There may be changes to do at merge time. and removed Needs Author The XEP is experimental and the PR was not made by the author. The author needs to acknowledge it. labels Oct 14, 2019
@Ppjet6 Ppjet6 self-assigned this Oct 14, 2019
@Ppjet6 Ppjet6 mentioned this pull request Oct 15, 2019
@Ppjet6 Ppjet6 merged commit 03bd9a1 into xsf:master Oct 15, 2019
@linkmauve linkmauve deleted the xep-0402 branch October 16, 2019 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready To Merge No acknowledgements of other parties are needed anymore. There may be changes to do at merge time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants