universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

UV4 Does not call a defined probe service

Open attonbomb opened this issue 3 years ago • 0 comments

[email protected]

I'm submitting a:

  • [ x] bug report
  • [ ] feature request => please use the user stories repo
  • [ ] support request => Please do not submit support requests here, use stackoverflow

Current behavior: Define a probe service and the probe service url is not executed. In an old version of uv4 produced for BL this works.

Expected behavior: That the defined probe service is called and the flow defined in the attached diagram is followed.

Steps to reproduce: Define a login service and a probe service in the "body" as per the example below. Add logging to the probe service endpoint and see whether or not it is called. This example uses internal BL services not accessible from outside and a local install of NGINX inside WSL for the probe service and the media hosting.

Related code:

"body":[
               {
                  "type":"Choice",
                  "items":[
                     {
                        "id":"http://localhost:8080/dash/sample_map.json/manifest.mpd",
                        "format":"application/dash+xml",
                        "type":"Sound",
                        "service":[
                           {
                              "@context":"http://iiif.io/api/auth/1/context.json",
                              "@id":"http://localhost:8080/auth/iiif/login",
                              "profile":"http://iiif.io/api/auth/1/login",
                              "label":"Login to the British Library"
                           },
                           {
                              "id":"http://localhost:8080/media/dash/ark:/81055/tvdc_100005097135.0x000009/probe.json",
                              "type":"AuthProbeService1",
                              "profile":"http://iiif.io/api/auth/1/probe"
                           }
                        ]
                     },
                     {
                        "id":"http://apiirc.ad.bl.uk/media/iiif/ark:/81055/tvdc_100005097135.0x000009/index.m3u8",
                        "format":"application/vnd.apple.mpegURL",
                        "type":"Sound",
                        "service":[
                           {
                              "@context":"http://iiif.io/api/auth/1/context.json",
                              "@id":"http://localhost:8080/auth/iiif/login",
                              "profile":"http://iiif.io/api/auth/1/login",
                              "label":"Login to the British Library"
                           },
                           {
                              "id":"http://localhost:8080/media/dash/ark:/81055/tvdc_100005097135.0x000009/probe.json",
                              "type":"AuthProbeService1",
                              "profile":"http://iiif.io/api/auth/1/probe"
                           }
                        ]
                     }
                  ]
               }
            ]

Other information: We have a version where this is at least calling the probe service, I am not sure whether it is following the flow defines in the attached diagram here probe service flow

attonbomb avatar Feb 23 '22 17:02 attonbomb