[SR-Users] uri unescape transformation?

Juha Heinanen jh at tutpro.com
Sat Mar 26 06:42:58 CET 2011


Iñaki Baz Castillo writes:

> Hi Juha, I don't understand why should it be needed. Why do you get a
> URI like that? In fact, ":" and "@" don't require to be hex-escaped.

inaki,

sorry about the noise.  i figured it myself too that : and @ in sip uri
cannot be escaped.  my problem is that for some reason i got such
escaped uris in xcap rls document that i created using xcap-rls-services
cli tool:

<?xml version='1.0' encoding='UTF-8'?>
<rls-services xmlns="urn:ietf:params:xml:ns:rls-services">
  <service uri="sip:jh_all at test.fi">
    <resource-list>http%3A//xcap.test.fi%3A8080/xcap-root/resource-lists/users/sip%3Ajh%40test.fi/generallist.xml/%7E%7E/resource-lists/list%5B%40name%3D%22oma_buddylist%22%5D</resource-list>
    <packages>
      <package>presence</package>
    </packages>
  </service>
  <service xmlns:rl="urn:ietf:params:xml:ns:resource-lists" uri="sip:jh-buddies at test.fi">
    <list>
      <rl:entry uri="sip%3Atest%40test.fi"/>
      <rl:entry uri="sip%3Afoo%40test.fi"/>
    </list>
    <packages>
      <package>presence</package>
    </packages>
  </service>
</rls-services>

and then subscriptions to the list, of course, failed, because of the
escapes.

perhaps there is a bug in the tool.

-- juha



More information about the sr-users mailing list