[SR-Users] xcap: no more space for spec value

Juha Heinanen jh at tutpro.com
Mon Nov 12 01:11:58 CET 2012


i got the these error messages when my xcap server tried to serve 'GET
xcap-caps' request:

Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: INFO: XCAP service GET <xcap-caps>
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: <core> [pvapi.c:1305]: no more space for spec value
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: <core> [pvapi.c:1314]: buffer overflow -- increase the buffer size...
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: <core> [sr_module.c:1665]: Could not convert the PV-formated string to str
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: xhttp [xhttp_mod.c:461]: unable to get body

config code where this comes is this:

            xlog("L_INFO", "XCAP service $rm <$xcapuri(u=>auid)>\n");
            $var(xbody) =
"<?xml version='1.0' encoding='UTF-8'?>
<xcap-caps xmlns='urn:ietf:params:xml:ns:xcap-caps'>
  <auids>
    <auid>rls-services</auid>
    <auid>pidf-manipulation</auid>
    <auid>xcap-caps</auid>
    <auid>resource-lists</auid>
    <auid>pres-rules</auid>
    <auid>org.openmobilealliance.pres-rules</auid>
    <auid>org.openmobilealliance.user-profile</auid>
    <auid>org.openmobilealliance.pres-content</auid>
    <auid>org.openmobilealliance.search</auid>
    <auid>org.openmobilealliance.xcap-directory</auid>
  </auids>
  <extensions>
  </extensions>
  <namespaces>
    <namespace>urn:ietf:params:xml:ns:rls-services</namespace>
    <namespace>urn:ietf:params:xml:ns:pidf</namespace>
    <namespace>urn:ietf:params:xml:ns:xcap-caps</namespace>
    <namespace>urn:ietf:params:xml:ns:resource-lists</namespace>
    <namespace>urn:ietf:params:xml:ns:pres-rules</namespace>
    <namespace>urn:oma:xml:xdm:user-profile</namespace>
    <namespace>urn:oma:xml:prs:pres-content</namespace>
    <namespace>urn:oma:xml:xdm:search</namespace>
    <namespace>urn:oma:xml:xdm:xcap-directory</namespace>
  </namespaces>
</xcap-caps>";
            xhttp_reply("200", "OK", "application/xcap-caps+xml",
                "$var(xbody)");

i have not checked yet, which buffer should be increased, but would it
be a good idea to make the default bigger?

-- juha



More information about the sr-users mailing list