Modify

Opened 7 months ago

Closed 7 months ago

Last modified 6 months ago

#11814 closed defect (wontfix)

XML RPC with Bloodhound

Reported by: markus.fuger@… Owned by: osimons
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: olemis Trac Release: 1.0

Description (last modified by rjollos)

Hello everybody,

I started this issue on the SCM Manager bug report list - but it now seems to be a problem of the XML-RPC plugin (https://groups.google.com/forum/#!topic/scmmanager/iYLKzJQ9Wd0)

I tried to link the SCM-Manager with bloodhound using XML-RPC (this was initially designed for the communication with trac). After I failed to set it up I tried the Python examples from the plugin homepage (I set the privileges for XML_RPC to anonymous) Python 2.7.6 Bloodhound 0.7 (with trac 1.0.1)

import xmlrpclib
server = xmlrpclib.ServerProxy("http://localhost:8000/main/xmlrpc")
print server.ticket.query()
# returns [1,2] because I added to tickets manually -> working
server.wiki.putAttachment('WikiStart/trac.bak', xmlrpclib.Binary(open('trac.bak').read()))
# will add an attachment to the WikiStart page -> working

server.ticket.get(1)

# <Fault 404: 'Ticket 1 does not exist.'> -> failed

a = server.ticket.create("foo","bar")
server.ticket.get(a)
# -> working BUT breaks the Bloodhound tickets page!!!

# My Tickets
# Info Items list is empty
# Widget error
# Error  Exception raised while rendering widget. Contact your administrator for further details
# Widget name
# TicketQuery
# Exception type
# TracError
# Log entry ID
# 492056e7-8a5c-46da-ac12-9d6e6b607b69

# until I delete that ticket again

server.ticket.get(a)
# which returns 0

I tried those things with the dedicated bloodhound xml rpc plugin and with the trac XMLRPC plugin - both times the same effect.

Perhaps someone could help me fix that, Markus

Attachments (0)

Change History (3)

comment:1 in reply to: ↑ description Changed 7 months ago by olemis

Replying to markus.fuger@…:

Hello everybody,

I started this issue on the SCM Manager bug report list - but it now seems to be a problem of the XML-RPC plugin (https://groups.google.com/forum/#!topic/scmmanager/iYLKzJQ9Wd0)

I cannot reply there ... sorry .

I tried to link the SCM-Manager with bloodhound using XML-RPC (this was initially designed for the communication with trac). After I failed to set it up I tried the Python examples from the plugin homepage (I set the privileges for XML_RPC to anonymous) Python 2.7.6 Bloodhound 0.7 (with trac 1.0.1)

btw , Bloodhound RPC plugin is tested against BH trunk (i.e. currently 0.8-dev) so it's possible to find some incompatibilities when using it with BH=0.7 .

[...]

server.ticket.get(1)

# <Fault 404: 'Ticket 1 does not exist.'> -> failed

The reason for this to happen is that you are using the wrong RPC URL . See these messages . There are other interesting details mentioned in other messages in that thread .

[...]

I tried those things with the dedicated bloodhound xml rpc plugin and with the trac XMLRPC plugin - both times the same effect.

please try again using product RPC URL , upgrading to BH=0.8-dev is recommended

Perhaps someone could help me fix that,

unless something new is noticed there's nothing to fix , afaict .

comment:2 Changed 7 months ago by olemis

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

comment:3 Changed 6 months ago by rjollos

  • Description modified (diff)

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.