OC cannot add PyCA capture agent when server ending with /

Steps to reproduce

Steps to reproduce:
1. Set OC server URL anding with '/'
2. Start PyCa
3. PyCa reads the server URL with doble '//'

Actual Results:
The service address appears with an extra '/' and cannot be associated with capture agent PyCA.

[pyca.config:129:logger_init()] [INFO] Log level set to debug
[pyca.config:89:update_configuration()] [INFO] Configuration loaded from ./etc/pyca.conf
[pyca.utils:78:get_service()] [INFO] Endpoint for org.opencastproject.capture.admin: http://ec2-XX-XXX-XX-XX.us-west-1.compute.amazonaws.com:8080//capture-admin
[pyca.utils:78:get_service()] [INFO] Endpoint for org.opencastproject.ingest: http://ec2-XX-XXX-XX-XX.us-west-1.compute.amazonaws.com:8080//ingest
[pyca.utils:78:get_service()] [INFO] Endpoint for org.opencastproject.scheduler: http://ec2-XX-XXX-XX-XX.us-west-1.compute.amazonaws.com:8080//recordings
[pyca.utils:78:get_service()] [INFO] Endpoint for org.opencastproject.capture.admin: http://ec2-XX-XXX-XX-XX.us-west-1.compute.amazonaws.com:8080//capture-admin
[pyca.utils:78:get_service()] [INFO] Endpoint for org.opencastproject.capture.admin: http://ec2-XX-XXX-XX-XX.us-west-1.compute.amazonaws.com:8080//capture-admin
[pyca.utils:147:register_ca()] [WARNING] Could not set agent statei to offline: (22, 'The requested URL returned error: 405 HTTP method POST is not supported by this URL')
[pyca.schedule:69:get_schedule()] [ERROR] Could not get schedule: (22, 'The requested URL returned error: 404 Not Found')

Expected Results:
System should expose OC services either show a warning with ending server with '/' or auto-correct the value

Workaround (if any):
Remove '/' from OC server configuration 'org.opencastproject.server.url'

Assignee

Lars Kiesow

Reporter

Juan Pablo Nieto

Severity

Usability Issue

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major
Configure