Modify

Opened 5 years ago

Closed 4 years ago

#6847 closed defect (wontfix)

To enable connecting with NoUserID (for Testlink integration)

Reported by: tianbai Owned by: osimons
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords: Testlink
Cc: tianbai Trac Release: 0.11

Description

Currently, I have to use 'anonymous' as the username to connect with xmlrpc:

import xmlrpclib
server = xmlrpclib.ServerProxy("http://'''anonymous'''@server/trac/project/xmlrpc") 
multicall = xmlrpclib.MultiCall(server) 
for ticket in server.ticket.query("id=1"): 
    multicall.ticket.get(ticket) 
print map(str, multicall())

If I use a blank username (NoUserID is configured to be On with Apache):

server = xmlrpclib.ServerProxy("http://server/trac/project/xmlrpc") 

It returned the error "401 Authorization Required".

The problem is that it seems Testlink connects to Trac with a blank username, so it fails unless I hack Testlink's code.

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by osimons

  • Resolution set to wontfix
  • Status changed from new to closed

That is quite an intricate set of authentication config details for a particular purpose, but I fail to see how it is an issue for the RPC plugin - or even what is expected to change in the plugin to fix this? The RPC plugin don't provide authentication. Apache does, and it is read and configured by Trac itself long before it arrives at plugin code.

I'm closing this. Please reopen if I haven't understood the issue correctly.

Add Comment

Modify Ticket

Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.