Modify

Opened 11 years ago

Closed 7 years ago

#9413 closed enhancement (needinfo)

Enable /login/rpc

Reported by: simon04 Owned by: stoecker
Priority: minor Milestone:
Component: Trac Version:
Keywords: Cc:

Description

I would like to test/use the Trac integration with IntelliJ (http://www.jetbrains.com/idea/features/tasks_and_context.html) which requires https://josm.openstreetmap.de/login/rpc to access tickets.

Would you please give me (or all commiters or registered users) the XML_RPC permission (http://trac-hacks.org/wiki/XmlRpcPlugin).

Thanks!

Attachments (0)

Change History (12)

in reply to:  description comment:1 by Don-vip, 11 years ago

Replying to simon04:

Would you please give me (or all commiters or registered users) the XML_RPC permission (http://trac-hacks.org/wiki/XmlRpcPlugin).

Done.

If you manage to get it work let me know, I tried to use it from my Sonar instance, without success, I always have this problem:

23:26:41.713 INFO  - Sensor org.sonar.plugins.trac.TracSensor@390ea55c...
23:26:41.714 INFO  - Trac: Connecting to https://josm.openstreetmap.de
23:26:41.728 INFO  - Trac: XML-RPC URL is https://josm.openstreetmap.de/login/xmlrpc
23:26:43.119 WARN  - Trac: XmlRpcException (possibly missing authentication details?).
org.apache.xmlrpc.XmlRpcException: XML_RPC privileges are required to perform this operation. You don't have the required permissions.
	at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:197) ~[na:na]
	at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156) ~[na:na]
	at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143) ~[na:na]
	at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69) ~[na:na]
	at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56) ~[na:na]
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167) ~[na:na]
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137) ~[na:na]
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126) ~[na:na]
	at org.sonar.plugins.trac.TracSensor.getPriorityCount(TracSensor.java:73) ~[na:na]
	at org.sonar.plugins.trac.TracSensor.analyse(TracSensor.java:152) ~[na:na]
	at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:72) ~[sonar-batch-3.7.3.jar:na]
	at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:114) ~[sonar-batch-3.7.3.jar:na]

Although I'm sure the user account has the required permission. But maybe that's a sonar bug that don't use the correct user account, I don't know.

comment:2 by simon04, 11 years ago

Same problem here: Now I'm able to access https://josm.openstreetmap.de/login/rpc, but every operation results in XML_RPC privileges are required to perform this operation. You don't have the required permissions.". Are there further user permissions required?

comment:4 by stoecker, 11 years ago

No need for that. authentication can be defined in Apache config.

comment:5 by simon04, 11 years ago

What about enabling RPC for everybody?

comment:6 by Don-vip, 11 years ago

We should try first to make it work for us :) I tried to play with various config files for these plugins without success for now. Maybe it's our Apache config that messes up, I will look again :)

comment:7 by simon04, 11 years ago

My hope was that it might be easier to enable for all users because "XML_RPC privileges are required" then would be given to anyone. But since I'm unaware of Trac' and JOSM server's internals, I'm fine with your proceeding. :-)

comment:8 by Don-vip, 11 years ago

Resolution: fixed
Status: newclosed

Changed my mind, enabled it for everyone. I hope it won't increase server load. If it does, we'll see to define a better authentication.

comment:9 by simon04, 8 years ago

Resolution: fixed
Status: closedreopened

Have there been some changes recently? I get XML_RPC privileges are required to perform this operation. You don't have the required permissions. again …

comment:10 by simon04, 8 years ago

Any update on this? I used this feature in IntelliJ to avoid wrong ticket references in commits.

in reply to:  10 comment:11 by stoecker, 8 years ago

Replying to simon04:

Any update on this? I used this feature in IntelliJ to avoid wrong ticket references in commits.

I have not followed this in the past, but I changed the server config now, so that "/login/" (note the ending slash) requires HTTP-Basic-Authentication (i.e. username/password) in case of https usage (no special handling for HTTP!). That allows to access these page(s) without previous web-based login form filling, but should keep that trac auth cookies also when you leave /login/ path as long as session cookies are stored. An useraccount with XML_RPC permission is required (should be available for every user after login).

Is that what was wanted?

comment:12 by stoecker, 7 years ago

Resolution: needinfo
Status: reopenedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain stoecker.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.