Uploaded image for project: 'Opencast'
  1. MH-12255

OC cannot add PyCA capture agent when server ending with /

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed and reviewed
    • Affects versions: 2.3.0
    • Fix versions: 3.0
    • Labels:
      None
    • Severity:
      Usability Issue
    • Steps to reproduce:
      Hide
      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'





      Show
      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'

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              lkiesow Lars Kiesow
              Reporter:
              juanpanie Juan Pablo Nieto
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases