From 3f921ac8dc7bebb0898ee8f214c9a4a19c522f13 Mon Sep 17 00:00:00 2001 From: stpeter Date: Wed, 1 Jun 2011 11:31:47 -0600 Subject: [PATCH] 0.4 --- xep-0277.xml | 118 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 69 insertions(+), 49 deletions(-) diff --git a/xep-0277.xml b/xep-0277.xml index e9aa0a23..1be60b67 100644 --- a/xep-0277.xml +++ b/xep-0277.xml @@ -17,9 +17,16 @@ - NOT YET ASSIGNED + microblog &stpeter; &hildjj; + + Sergey + Dobrov + binary@jrudevels.org + binary@jrudevels.org + http://jrudevels.org/ + Valérian Saliou @@ -27,6 +34,12 @@ vanaryon@jappix.com http://vanaryon.eu/ + + 0.4 + 2011-06-01 + vs +

Added microblog informations feature, ID innacurracy fixed, urn:xmpp:inbox support added, new commenting namespaces, first comment marker, security considerations added.

+
0.3 2011-04-26 @@ -94,10 +107,6 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 - Romeo's Microblog - - tag:montague.lit,2008:home - 2008-05-08T18:30:02Z Romeo Montague xmpp:romeo@montague.lit @@ -109,7 +118,7 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 href='http://montague.lit/romeo/posts/1cb57d9c-1c46-11dd-838c-001143d5d5db'/> - tag:montague.lit,2008-05-08T18:30:02Z:posts-1cb57d9c-1c46-11dd-838c-001143d5d5db + tag:montague.lit,2008-05-08:posts-1cb57d9c-1c46-11dd-838c-001143d5d5db 2008-05-08T18:30:02Z 2008-05-08T18:30:02Z @@ -131,10 +140,6 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 - Romeo's Microblog - - tag:montague.lit,2008:home - 2008-05-08T18:30:02Z Romeo Montague xmpp:romeo@montague.lit @@ -146,7 +151,7 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 href='http://montague.lit/romeo/posts/1cb57d9c-1c46-11dd-838c-001143d5d5db'/> - tag:montague.lit,2008-05-08T18:30:02Z:posts-1cb57d9c-1c46-11dd-838c-001143d5d5db + tag:montague.lit,2008-05-08:posts-1cb57d9c-1c46-11dd-838c-001143d5d5db 2008-05-08T18:30:02Z 2008-05-08T18:30:02Z @@ -170,10 +175,6 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 - Benvolio's Microblog - - tag:montague.lit,2008:home - 2008-05-08T18:31:21Z Benvolio Montague xmpp:romeo@montague.lit @@ -187,15 +188,15 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 href='xmpp:benvolio@montague.lit?; node=urn%3Axmpp%3Amicroblog%3A0; item=c4145006-1c53-11dd-b2d5-000bcd82471e'/> - tag:montague.lit,2008-05-08T18:31:21Z:posts-c4145006-1c53-11dd-b2d5-000bcd82471e + tag:montague.lit,2008-05-08:posts-c4145006-1c53-11dd-b2d5-000bcd82471e 2008-05-08T18:31:21Z 2008-05-08T18:31:21Z @@ -218,10 +219,6 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 - Benvolio's Microblog - - tag:montague.lit,2008:home - 2008-05-08T18:30:02Z Romeo Montague xmpp:romeo@montague.lit @@ -233,7 +230,7 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 href='http://montague.lit/benvolio/posts/1re57d3c-1q46-11dd-748r-024943d2d5rt'/> - tag:montague.lit,2008-05-08T18:31:21Z:posts-1re57d3c-1q46-11dd-748r-024943d2d5rt + tag:montague.lit,2008-05-08:posts-1re57d3c-1q46-11dd-748r-024943d2d5rt 2008-05-08T18:30:02Z 2008-05-08T18:32:02Z @@ -256,10 +253,6 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 - Romeo's Microblog - - tag:montague.lit,2008:home - 2008-05-08T18:35:02Z Romeo Montague xmpp:romeo@montague.lit @@ -288,7 +281,7 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 type='application/pdf' length='67123' href='http://montague.lit/romeo/files/82he1oh2084s.pdf'/> - tag:montague.lit,2008-05-08T18:35:02Z:posts-1df87v1q-2d12-43se-761w-318790d3g1sq + tag:montague.lit,2008-05-08:posts-1df87v1q-2d12-43se-761w-318790d3g1sq 2008-05-08T18:35:02Z 2008-05-08T18:35:02Z @@ -304,7 +297,7 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0

Juliet and Benvolio may want to discuss about latest Romeo's post. Romeo's client MIGHT add a element to the PubSub item. The element MUST have "rel", "title" and "href" attributes, where "rel" MUST have the "replies" value; "title" MUST have the "comments" value; "href" MUST be an XMPP URI (see &rfc5122; and &rfc3986;).

-

We assume Romeo's client first created a comments node (named "urn:xmpp:microblog:0:comments:hash", where "hash" is a client-side generated random hash), with defaults "pubsub#access_model" and "pubsub#publish_model" privacy settings (see &xep0060; for node creation and configuration).

+

We assume Romeo's client first created a comments node (named "urn:xmpp:microblog:0:comments/ID", where "ID" is the microblog item ID, or the SHA-1 encoded attachement URI, as defined in &rfc3174;), with defaults "pubsub#access_model" and "pubsub#publish_model" privacy settings (see &xep0060; for node creation and configuration).

- Romeo's Microblog - - tag:montague.lit,2008:home - 2008-05-08T18:30:02Z Romeo Montague xmpp:romeo@montague.lit @@ -332,8 +321,8 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0;item=2ze57d9c-1c46-21df-830c-002143d3d2qgf'/> - tag:montague.lit,2008-05-08T18:38:02Z:posts-2ze57d9c-1c46-21df-830c-002143d3d2qgf + href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Fdd88c9bc58886fce0049ed050df0c5f2'/> + tag:montague.lit,2008-05-08:posts-2ze57d9c-1c46-21df-830c-002143d3d2qgf 2008-05-08T18:38:02Z 2008-05-08T18:38:02Z @@ -342,6 +331,7 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 ]]> +

If the comment to publish is the first item of the node, the client MAY add a "link" element, with the "rel=start" attribute. In this way, clients can determine which comment is the first one of a discussion.

As we do for Post Comments, Romeo's client MAY create one comments PubSub node for each attachement of a post (see section of Attaching files to a Post of this document).

@@ -356,10 +346,6 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 - Romeo's Microblog - - tag:montague.lit,2008:home - 2008-05-08T18:54:02Z Romeo Montague xmpp:romeo@montague.lit @@ -379,9 +365,9 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 + href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Fa9fe0b44ea62c6be71fac8471696fece'/> - tag:montague.lit,2008-05-08T18:54:02Z:posts-1af87d4i-3f09-41gt-871e-098182g4b2az + tag:montague.lit,2008-05-08:posts-1af87d4i-3f09-41gt-871e-098182g4b2az 2008-05-08T18:54:02Z 2008-05-08T18:54:02Z @@ -393,13 +379,14 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0

If Juliet wants to comment Romeo's latest post, her client MUST then send a new Atom entry to the defined PubSub node.

+

Note: A comments node SHOULD be located at a personal eventing (PEP) node but MAY be located at a generic publish-subscribe node that is not attached to a user's IM account.

- + @@ -433,10 +420,6 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 - Romeo's Microblog - - tag:montague.lit,2008:home - 2008-05-08T18:43:01Z Romeo Montague xmpp:romeo@montague.lit @@ -450,8 +433,8 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0;item=1zr23z8a-3g12-34fh-750b-120867gjc1sqh'/> - tag:montague.lit,2008-05-08T18:43:01Z:posts-1zr23z8a-3g12-34fh-750b-120867gjc1sqh + href='xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2F36ec6dfe61e52b1e2cdb248823520233'/> + tag:montague.lit,2008-05-08:posts-1zr23z8a-3g12-34fh-750b-120867gjc1sqh 2008-05-08T18:43:01Z 2008-05-08T18:43:01Z @@ -469,12 +452,49 @@ xmpp:romeo@montague.lit?;node=urn%3Axmpp%3Amicroblog%3A0 ]]>
+ +

Romeo may want to publish some informations about his microblog, such as its title, an alternate web-version URI or the last time it was updated.

+

Romeo's client MAY publish these informations once he defined them. If so, his client MUST send them to the "urn:xmpp:microblog:0:informations" node, containing one only item, with the ID set to "0".

+ + + + + + + Romeo's Microblog + + tag:montague.lit,2008:home + 2008-05-08T18:30:02Z + + Romeo Montague + xmpp:romeo@montague.lit + + + + + + + + ]]> +
+ + +

When replying to a comment, it is RECOMMENDED the user's client send a notification to the people who commented on the comments node, as defined in a forthcoming specification currently located at <http://xmpp.org/extensions/inbox/notification-inbox.html>.

+

When quoting an user's name (e.g., by using @user tag), it is also RECOMMENDED to send a similar notification.

+
+

Depending on service policies and the value of the "pubsub#include_body" node configuration option, microblogging notifications SHOULD include a message <body/> element for backwards-compatibility with Jabber clients that are not pubsub-capable. It is RECOMMENDED for the XML character value of the <body/> element to be the same as that of the <content/> child of the Atom <entry/>.

-

This specification does not introduce new security concerns above and beyond those already discussed in the specifications on which it depends.

+ +

The client SHOULD check that the comment author informations (provided in the "author" element) are valid, by checking that the "publisher" item attribute value matches the "uri" element value. If there is a difference, the comment MIGHT be displayed, but it is RECOMMENDED to specify there is a security problem.

+