Ticket #130 (closed bugs: fixed)

Opened 6 months ago

Last modified 6 months ago

Unauthorized SRM 2.2 ping results in java.lang.NoSuchMethodException

Reported by: patrick Assigned to: litvinse
Priority: major Milestone: 1.8.0-15p5
Component: srm Version: 1.8.0
Keywords: srm 2.2 ping, unauthorized access, NoSuchMethodException Cc:
Sub Version:

Change History

05/23/08 12:41:52 changed by patrick

Whilst digging around getting SRM to work, I found what looks like a bug in the SRM v2 implementation for the ping command.

It seems that, if an unauthorised user attempts to do an SRM-ping, the server-side exception "Permission Denied: Cannot determine Username for DN ...", thrown by diskCacheV111.services.authorization.KPWDAuthorizationPlugin.

However, the plot thickens as seemingly this exception isn't handled correctly, resulting in a further exception:

getFailedResponse invocation failed java.lang.NoSuchMethodException?: org.dcache.srm.v2_2.SrmPingResponse?.setReturnStatus(org.dcache.srm.v2_2.TReturnStatus)

which Axis propagates back to the client as:

SRMClientV2 : srmPing: try # 0 failed with error SRMClientV2 : java.rmi.RemoteException?: SRMServerV2.srmPing() exception; nested exception is:

java.lang.NoSuchMethodException?:

org.dcache.srm.v2_2.SrmPingResponse?.setStatusCode(org.dcache.srm.v2_2.TStatusCode)

If an SRM v1 ping is issued, there is no problem.

Since Martin was able to replicate the problem, I believe this is a genuine problem.

05/23/08 12:42:00 changed by patrick

  • status changed from new to closed.
  • resolution set to fixed.