-
Notifications
You must be signed in to change notification settings - Fork 127
XEP-0066: Strike Section 6 #1553
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
Open
dwd
wants to merge
3
commits into
xsf:master
Choose a base branch
from
dwd:66-strike-6
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,12 @@ | |
| <url>http://www.xmpp.org/schemas/x-oob.xsd</url> | ||
| </schemaloc> | ||
| &stpeter; | ||
| <revision> | ||
| <version>1.6</version> | ||
| <date>2026-07-08</date> | ||
| <initials>dwd</initials> | ||
| <remark><p>Twenty years later, strike section 6's SI suggestion</p></remark> | ||
| </revision> | ||
| <revision> | ||
| <version>1.5</version> | ||
| <date>2006-08-16</date> | ||
|
|
@@ -88,8 +94,8 @@ | |
| <p>This document defines two XMPP protocol extensions for communicating URIs between Jabber entities, where the data formats are qualified by the 'jabber:iq:oob' and 'jabber:x:oob' namespaces. Although these mechanisms were originally used for out-of-band (OOB) data transfer, they are also used more generally to exchange or communicate URIs.</p> | ||
| </section1> | ||
| <section1 topic='jabber:iq:oob' anchor='iq-oob'> | ||
| <p>The intent of the 'jabber:iq:oob' was to provide a "least common denominator" mechanism for basic file transfers. Although &xep0096; defines a more generic method for communicating file exchange options, the 'jabber:iq:oob' namespace can be included as one option therein since it provides a fallback mechanism when clients do not support file transfer options such as those defined in &xep0065; and &xep0047;.</p> | ||
| <p>To initiate an out-of-band file transfer with an intended recipient using the 'jabber:iq:oob' namespace (whether or not negotiated via &xep0096;), the sending application sends an &IQ; of type 'set' to the recipient containing a &QUERY; child element qualified by the 'jabber:iq:oob' namespace; the &QUERY; MUST in turn contain a <url/> child specifying the URL of the file to be transferred, and MAY contain an optional <desc/> child describing the file. This usage is shown in the following example.</p> | ||
| <p>The intent of the 'jabber:iq:oob' was to provide a "least common denominator" mechanism for basic file transfers.</p> | ||
| <p>To initiate an out-of-band file transfer with an intended recipient using the 'jabber:iq:oob' namespace, the sending application sends an &IQ; of type 'set' to the recipient containing a &QUERY; child element qualified by the 'jabber:iq:oob' namespace; the &QUERY; MUST in turn contain a <url/> child specifying the URL of the file to be transferred, and MAY contain an optional <desc/> child describing the file. This usage is shown in the following example.</p> | ||
| <example caption="Sender Initiates Request-Response"><![CDATA[ | ||
| <iq type='set' | ||
| from='stpeter@jabber.org/work' | ||
|
|
@@ -178,73 +184,8 @@ | |
| <section1 topic='Use With Non-HTTP URI Schemes' anchor='nonhttp'> | ||
| <p>The value of the <url/> element is not limited to URIs that conform to the http: URI scheme (as specified by &rfc2616;). For example, file transfers could also be effected using ftp: URIs as (specified by &rfc0959;). Going further afield, several existing Jabber clients use the callto: URI scheme to initiate voice conferencing via NetMeeting or GnomeMeeting. Other out-of-band communications could be initiated in a similar way via URI schemes such as sip: (as specified by &rfc3261;). All of these usages are allowed by the existing OOB namespaces, as long as the value of the <url/> element is a valid URI (as specified by &rfc3986;).</p> | ||
| </section1> | ||
| <section1 topic='Integration With Stream Initiation' anchor='si'> | ||
| <p><em>This section is non-normative.</em></p> | ||
| <p>&xep0095; defines methods for negotiating content streams between any two entities, and XEP-0096 defines a profile of stream initiation for file transfer. Although the use of jabber:iq:oob is not recommended by XEP-0096, it could be offered as one option (e.g., a fallback if SOCKS5 Bytestreams and In-Band Bytestreams are not available). If so, the value of the feature negotiation option MUST be "jabber:iq:oob" and the &QUERY; element within the &IQ; stanza qualified by the 'jabber:iq:oob' namespace MUST possess a 'sid' attribute whose value is the StreamID negotiated by stream initiation.</p> | ||
| <p>A sample protocol flow is shown below.</p> | ||
| <example caption='Stream Initiation Offer'> | ||
| <![CDATA[ | ||
| <iq type='set' | ||
| from='romeo@montague.net/orchard' | ||
| to='juliet@capulet.com/chamber' | ||
| id='offer1'> | ||
| <si xmlns='http://jabber.org/protocol/si' | ||
| id='a0' | ||
| mime-type='text/plain' | ||
| profile='http://jabber.org/protocol/si/profile/file-transfer'> | ||
| <file xmlns='http://jabber.org/protocol/si/profile/file-transfer' | ||
| name='test.txt' | ||
| size='1022'/> | ||
| <feature xmlns='http://jabber.org/protocol/feature-neg'> | ||
| <x xmlns='jabber:x:data' type='form'> | ||
| <field var='stream-method' type='list-single'> | ||
| <option><value>http://jabber.org/protocol/bytestreams</value></option> | ||
| <option><value>http://jabber.org/protocol/ibb</value></option> | ||
| <option><value>jabber:iq:oob</value></option> | ||
| </field> | ||
| </x> | ||
| </feature> | ||
| </si> | ||
| </iq> | ||
| ]]> | ||
| </example> | ||
| <example caption='Stream Initiation Result'> | ||
| <![CDATA[ | ||
| <iq type='result' | ||
| from='juliet@capulet.com/chamber'> | ||
| to='romeo@montague.net/orchard' | ||
| id='offer1'> | ||
| <si xmlns='http://jabber.org/protocol/si' | ||
| id='a0' | ||
| profile='http://jabber.org/protocol/si/profile/file-transfer'> | ||
| <feature xmlns='http://jabber.org/protocol/feature-neg'> | ||
| <x xmlns='jabber:x:data' type='submit'> | ||
| <field var='stream-method'> | ||
| <value>jabber:iq:oob</value> | ||
| </field> | ||
| </x> | ||
| </feature> | ||
| </si> | ||
| </iq> | ||
| ]]> | ||
| </example> | ||
| <example caption="Sender Initiates Request-Response"><![CDATA[ | ||
| <iq type='set' | ||
| from='romeo@montague.net/orchard' | ||
| to='juliet@capulet.com/chamber'> | ||
| id='send1'> | ||
| <query xmlns='jabber:iq:oob' | ||
| sid='a0'> | ||
| <url>http://www.shakespeare.lit/files/letter.txt</url> | ||
| </query> | ||
| </iq> | ||
| ]]></example> | ||
| <example caption="Recipient Informs Sender of Success"><![CDATA[ | ||
| <iq type='result' | ||
| from='juliet@capulet.com/chamber' | ||
| to='romeo@montague.net/orchard' | ||
| id='send1'/> | ||
| ]]></example> | ||
| <section1 topic='Integration With Stream Initiation (retracted)' anchor='si'> | ||
| <p><note>Up to and including revision 1.5 of this XEP, this section defined a non-normative integration with Stream Initiation, itself deprecated. To retain section numbering, this text remains as a placeholder.</note></p> | ||
| </section1> | ||
| <section1 topic='Security Considerations' anchor='security'> | ||
|
dwd marked this conversation as resolved.
|
||
| <p>As with any mechanism that communicates a URI, care must be taken by the receiving application to ensure that the resource retrieved does not contain harmful or malicious data (e.g., a virus-infected file).</p> | ||
|
|
@@ -280,6 +221,10 @@ | |
| <xs:element name='desc' type='xs:string' minOccurs='0'/> | ||
| </xs:sequence> | ||
| <xs:attribute name='sid' type='xs:string' use='optional'/> | ||
| <!-- | ||
| Note that the sid attribute is a remnant of the retracted | ||
| Session Initiation integration, and therefore always unused | ||
| --> | ||
|
Comment on lines
+223
to
+226
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like my text better. |
||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ambivalent about this one. The suggestion is probably an improvement, I suppose I should accept it once I've finished swallowing my pride...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other changelog entries are done in the past tense, I suppose