Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
180 lines (172 sloc) 7.05 KB
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE xep SYSTEM 'xep.dtd' [
<!ENTITY % ents SYSTEM 'xep.ent'>
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
<title>Software Information</title>
<abstract>This document specifies an extended data format whereby XMPP service discovery responses can include detailed information about the software application that powers a given XMPP entity for includion in service discovery responses.</abstract>
<type>Standards Track</type>
<spec>XMPP Core</spec>
<remark><p>Per Last Call feedback, removed icons for presence states; redefined the icon field to use media element per XEP-0221.</p></remark>
<remark><p>Added icon fields.</p></remark>
<remark><p>Initial published version.</p></remark>
<remark><p>Added software field; generalized to be software information, not client information.</p></remark>
<remark><p>Clarified relationship to Software Version (XEP-0092).</p></remark>
<remark><p>First draft.</p></remark>
<section1 topic='Introduction' anchor='intro'>
<p>&xep0128; defines a way for an XMPP entity to include extended information in its responses to &xep0030; information requests. This document specifies a usage of <cite>XEP-0128</cite> whereby an XMPP entity can provide detailed data about itself in such responses. This protocol is intended to replace &xep0092; for software information discovery (thus reducing or eliminating the need for distinct software version requests) and also provides a format that can be encapsulated into &xep0115; notifications.</p>
<section1 topic='Use Case' anchor='usecase'>
<p>To illustrate this usage, consider the following example of a disco#info request-response interaction that includes detailed client information:</p>
<example caption='Entity queries client for information'><![CDATA[
<iq from='romeo@montaguue.lit/orchard'
<query xmlns=''/>
<p>Upon receiving the disco#info request, the software replies and includes extended information in a data form (&xep0004;), where the icon is communicated using the format defined in &xep0221;.</p>
<example caption='Client communicates information'><![CDATA[
<iq from='juliet@capulet.lit/chamber'
<query xmlns=''>
<identity category='client' name='Exodus' type='pc'/>
<feature var=''/>
<x xmlns='jabber:x:data' type='result'>
<field var='FORM_TYPE' type='hidden'>
<field var='icon'>
<media xmlns='urn:xmpp:media-element'
<uri type='image/jpeg'>
<uri type='image/jpeg'>
<field var='os'>
<field var='os_version'>
<field var='software'>
<field var='software_version'>
<p>The fields have the following meaning:</p>
<li>icon -- A default icon to show for a device running the software</li>
<li>os -- The operating system on which the XMPP software is running</li>
<li>os_version -- The operating system version</li>
<li>software -- The XMPP software running at the entity (if this field is provided, its value SHOULD override any software name provided as the value of the 'name' attribute in the service discovery &lt;identity/&gt; element)</li>
<li>software_version -- The XMPP software version</li>
<section1 topic='Security Considerations' anchor='security'>
<p>Service discovery information is typically world-readable. Therefore, care should be taken in exposing information that may make it easier for a potential attacker to target the publishing entity's system (e.g., the operating system on which the software is running).</p>
<section1 topic='IANA Considerations' anchor='iana'>
<p>This document requires no interaction with &IANA;.</p>
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
<p>The &REGISTRAR; shall include the following information in its registries.</p>
<section2 topic='Field Standardization' anchor='registrar-formtype'>
<p>&xep0068; defines a process for standardizing the fields used within Data Forms qualified by a particular namespace, and <cite>XEP-0128</cite> describes how to use field standardization in the context of service discovery. This section registers fields for software information scoped by the "urn:xmpp:dataforms:softwareinfo" FORM_TYPE.</p>
<code caption='Registry Submission'><![CDATA[
Forms enabling the communication of detailed information
about an XMPP client.
label='A URL for an icon representing the software, no matter the
presence or availability status of the XMPP entity'/>
label='The operating system on which the XMPP software is running'/>
label='The operating system version'/>
label='The XMPP software running at the entity'/>
label='The XMPP software version'/>
<section1 topic='Acknowledgements' anchor='ack'>
<p>Thanks to Dave Cridland, Olivier Goffart, Joe Hildebrand, Etan Reisner, Remko Tronçon, and Jiří Zárevúcký for their comments.</p>