diff --git a/inbox/bookmarks2.xml b/inbox/bookmarks2.xml new file mode 100644 index 00000000..b8931c9f --- /dev/null +++ b/inbox/bookmarks2.xml @@ -0,0 +1,143 @@ + + + + %ents; + ]> + + +
+ Bookmarks 2 (This Time it's Serious) + This specification defines a syntax and storage profile for keeping a list of chatroom bookmarks on the server. + &LEGALNOTICE; + XXXX + ProtoXEP + Standards Track + Standards + Council + + + + bookmarks2 + + standards + + Dave + Cridland + dave.cridland@surevine.com + dave.cridland@surevine.com + + + Jan-Carel + Brand + jc@opkode.com + jc@opkode.com + + + 0.0.1 + 2018-03-17 + dwd/jcb +

First draft

+
+
+ +

The original Bookmarks specification (&xep0048;) used the widely available + Private XML Storage (&xep0049;), but stored all bookmarks in a single element. + When the specification was moved to the Standards Track and Draft, it was also + updated to use the user's Pubsub service (&xep0223;), but kept this single element + containing all bookmarks inside a single Pubsub item.

+

Most implementations have kept to the original, Private XML Storage based solution, and + while some newer implementations have used Pubsub, these are limited in capability by the use of + a single item.

+

This specification resolves both issues by providing a new Bookmarks specification to migrate to, + and takes the opportunity to update the XML namespace in use as well. The URL storage is dropped, + since it is rarely used. Storage of URL bookmarks is therefore out of scope.

+
+ + +

Clients store each bookmarked chatroom as a Pubsub item within the '&namespace;' node. Each + item SHALL have, as item id, the Room JID of the chatroom (eg, coven@chat.shakespeare.lit).

+

The payload of the item SHALL be a conference element qualified by the '&namespace;' namespace, with the following syntax:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Element or AttributeDefinitionDatatypeInclusion
'autojoin' attributeWhether the client should automatically join the conference room on login.boolean defaulting to false &BOOLEANNOTE;OPTIONAL
'name' attributeA friendly name for the bookmark.stringRECOMMENDED
<nick/> elementThe user's preferred roomnick for the chatroom.stringOPTIONAL
<password/> elementUnencrypted string for the password needed to enter a password-protected room. For security reasons, use of this element is NOT RECOMMENDED.stringNOT RECOMMENDED
+

Note: The datatypes are as defined in &w3xmlschema2;.

+ &namespace; + Puck + +]]> +

This bookmark would be displayed as 'Council of Oberon' and, if activated, would attempt to join the conference room 'council@conference.underhill.org' with nickname 'Puck'.

+

Note that a bookmark item MUST contain only one conference room.

+

Note also that a conference element has no truly mandatory attributes or child elements, though a name SHOULD be given. Thus the following is legal:

+ &namespace; +]]> +
+ + +

When a client is sent an event from the Pubsub service for the '&namespace;' node, it MUST check the 'autojoin' attribute if present, and join the room immediately if the attribute is both present and true.

+
+ + + +
    +
  • The conference element does not contain the jid - this is present only in the item id.
  • +
  • Each conference element is contained within an item.
  • +
  • The storage MUST be &xep0223;
  • +
+
+ +

A server MAY choose to unify the bookmarks from both &xep0049; based and the current &xep0048;.

+ +

When a client publishes a new item, the server MAY collate all items, casting them into the 'storage:bookmarks' namespace and setting the jid attribute to the item id in each case. When contained within a storage element qualified by the 'storage:bookmarks' namespace, this will be the correct format for both current and previous variants of &0048;

+
+ +

If a client publishes a replacement list of bookmarks via the older specifications, a server MAY examine the list and update the individual items as required, sending updates or retraction notifications as needed. Servers electing to perform this OPTIONAL behaviour SHOULD NOT send notifications for unchanged items.

+
+
+
+ + +

This specification relies fully on a number of others. Most particularly, support for this protocol is available if &xep0223; is supported.

+
+ + +

The authors would like to note that much of the syntax description was copied exactly from &xep0048; by Rachel Blackman, Peter Millard, and Peter Saint-Andre. Much of the remainder of this specification is based closely on their work.

+
+ + +

The password child element of conference is well known to provide only very weak levels of security; storing it in bookmarks lowers this security still further.

+
+