Skip to content
Snippets Groups Projects
Commit 198792a7 authored by Simon Spinner's avatar Simon Spinner
Browse files

Fix parsing of URL.

parent 26d74199
No related branches found
No related tags found
No related merge requests found
...@@ -64,8 +64,8 @@ public class WebServiceOutgoingCallInterceptor extends GenericSOAPHandler { ...@@ -64,8 +64,8 @@ public class WebServiceOutgoingCallInterceptor extends GenericSOAPHandler {
String componentName = url.getPath().substring(1); // Remove first slash String componentName = url.getPath().substring(1); // Remove first slash
int idx = url.getPath().lastIndexOf("/"); int idx = url.getPath().lastIndexOf("/");
if (idx > 0) { if (idx > 0) {
application = componentName.substring(0, idx); application = componentName.substring(0, idx - 1);
componentName = componentName.substring(idx + 1); componentName = componentName.substring(idx);
} }
ComponentRecord component = MonitoringService.INSTANCE.requireComponent(url.getHost(), application, "", componentName); ComponentRecord component = MonitoringService.INSTANCE.requireComponent(url.getHost(), application, "", componentName);
OperationRecord currentOperation = currentInvocation.requireEndpoint(component, caller.getDeclaringClass().getName(), "http", caller.getName()); OperationRecord currentOperation = currentInvocation.requireEndpoint(component, caller.getDeclaringClass().getName(), "http", caller.getName());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment