On 08 Aug 12:57, fabien.castar...@gmail.com wrote: > Hi, > > Behavior of the request handler is not the same > for 'http://localhost:8069/' or 'http://localhost:8069'. > > When there is not a trailing slash, xmlrpclib adds automatically the part > "/RPC2" to the url. So, a ProtocolError is raised : > > xmlrpclib.ProtocolError: <ProtocolError for localhost:8069/RPC2: 401 > Unauthorized> > > I read somewhere (http://xmlrpc-c.sourceforge.net/doc/xmlrpc.html) : > > RPC2 is the conventional file name for an XML-RPC responder. > > > Is it better to have a such behavior, or could be interesting to handle > that (in adding a trailing slash if there isn't) to avoid this error ?
For me, the missing "/" is an error of the programmer because it is not a valid URI. So I don't think we must bloat Tryton to hide developper's mistakes. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpF4S65rlElk.pgp
Description: PGP signature