So, I think I've found a bug, but I'd like to hear if anyone else can
confirm it:

I try to make a query using SOAP for an entity in the DAL, using the
following bits of XML:


Code:
--------------------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.novell.com/vdx/service">
<soapenv:Header/>
<soapenv:Body>
<ser:queryRequest>
<ser:arg0>AUUddIdentitet</ser:arg0>
<ser:arg1>
<ser:string>AUUddIdentitet-Field0</ser:string>
<ser:string>AUUddIdentitet-Field1</ser:string>
</ser:arg1>
<ser:arg2>AUPerson-AUID = '123456'</ser:arg2>
</ser:queryRequest>
</soapenv:Body>
</soapenv:Envelope>
--------------------


The first two fields, I don't get any errors from the hyphens in. The
query part, however, the AUPerson-AUID, I get the following error back
from the server:


Code:
--------------------
<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>Server</faultcode><faultstring>Lexical error at line 1, column 9. Encountered: &quot;-&quot; (45), after : &quot;&quot;</faultstring><detail><ns1:exception xmlns="http://www.novell.com/wssdk" xmlns:ns1="http://www.novell.com/wssdk" xmlns:ns2="http://www.novell.com" xsi:type="ns2:TokenMgrError"></ns1:exception><stackTrace xmlns="" xsi:type="xsd:string">com.novell.srvprv.impl.vdata .soap.ws.TokenMgrError: Lexical error at line 1, column 9. Encountered: &quot;-&quot; (45), after : &quot;&quot;
at com.novell.srvprv.impl.vdata.soap.ws.VirtualEntity QueryParserForWSTokenManager.getNextToken(VirtualE ntityQueryParserForWSTokenManager.java:759)
at com.novell.srvprv.impl.vdata.soap.ws.VirtualEntity QueryParserForWS.jj_ntk(VirtualEntityQueryParserFo rWS.java:498)
at com.novell.srvprv.impl.vdata.soap.ws.VirtualEntity QueryParserForWS.RelationalExpression(VirtualEntit yQueryParserForWS.java:255)
at com.novell.srvprv.impl.vdata.soap.ws.VirtualEntity QueryParserForWS.Expression(VirtualEntityQueryPars erForWS.java:123)
at com.novell.srvprv.impl.vdata.soap.ws.VirtualEntity QueryParserForWS.Input(VirtualEntityQueryParserFor WS.java:68)
at com.novell.srvprv.impl.vdata.soap.ws.impl.VdxServi ceSkeletonImpl.queryVdx(VdxServiceSkeletonImpl.jav a:180)
at com.novell.srvprv.impl.vdata.soap.ws.impl.VdxServi ceSkeletonImpl.query(VdxServiceSkeletonImpl.java:2 46)
at com.novell.srvprv.impl.vdata.soap.ws.IRemoteVdx_Se rviceSkeleton._invoke(IRemoteVdx_ServiceSkeleton.j ava:192)
at com.novell.soa.ws.server.ServletSkeleton.invokeEnd Point(ServletSkeleton.java:208)
--------------------


etc. etc.

Am I wrong to think that hyphens are allowed in attribute names? As I
recall, they are in LDAP, and Designer allows it no problems. (It allows
'.' and '_' as well, but these give rise to Other Problems.)


Hope someone here can give me a clue for this, or confirm that this is
indeed a bug.

Thanks,
Rune


--
mihtjel
------------------------------------------------------------------------
mihtjel's Profile: https://forums.netiq.com/member.php?userid=806
View this thread: https://forums.netiq.com/showthread.php?t=51187