[Standards] Off-by-one error in XEP-372 "References"

Severino Ferrer de la Peñita seve at delape.net
Fri Dec 4 13:22:57 UTC 2020


Hi,

I already discussed this with the author, you can read more about it on the following logs: https://logs.xmpp.org/jdev/2020-10-06?p=h#2020-10-06-f8688aaa95f97e76

I honestly don't believe `i+1` is correct.
Could you please share some of that feedback, Andrew? 


Kind regards, 
 
Seve 
 https://delape.net 
 https://github.com/SeveFP 


> On 04/12/2020 13:40 Andrew Nenakhov <andrew.nenakhov at redsolution.com> wrote:
> 
>  
> We're currently use it in all our clients, extensively. We finally
> settled on +1 offset because of feedback. That said, we use our own
> namespace because we can and because XSF moves XMPP in the wrong
> direction. :-D
> 
> пт, 4 дек. 2020 г. в 17:33, JC Brand <lists at opkode.com>:
> >
> > Hey folks
> >
> > In XEP-0372 in section 3.1, there is the following text:
> >
> > > An end attribute is similarly  used for the index of the last character of the reference
> >
> > However, in the example in 3.2, the "end" attribute is set to 78, which
> > is the index of the space after the nickname "Juliet".
> >
> > The example appears to contradict the text. I'd like to fix this, but
> > I'm not sure what the original author's intention was. I'm assuming the
> > text is correct and the example is wrong.
> >
> > AFAIK only Converse.js and maybe Movim support this incomplete XEP.
> >
> > If anyone else is using it, I'd appreciate it if you could let me know
> > which offset you're using. Converse is currently following the example
> > in the XEP, i.e. i+1.
> >
> > Thanks
> > JC
> >
> >
> > _______________________________________________
> > Standards mailing list
> > Info: https://mail.jabber.org/mailman/listinfo/standards
> > Unsubscribe: Standards-unsubscribe at xmpp.org
> > _______________________________________________
> 
> 
> 
> -- 
> Andrew Nenakhov
> CEO, redsolution, OÜ
> https://redsolution.com
> _______________________________________________
> Standards mailing list
> Info: https://mail.jabber.org/mailman/listinfo/standards
> Unsubscribe: Standards-unsubscribe at xmpp.org
> _______________________________________________


More information about the Standards mailing list