Skip to content

Commit

Permalink
Merge pull request #681 from inspire-eu-validation/issue-515
Browse files Browse the repository at this point in the history
Add log to check received uri
  • Loading branch information
carlospzurita authored Nov 18, 2021
2 parents 57566da + b9670de commit 633c6ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metadata/2.0/sds/ets-md-sds-bsxets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ let $messages :=
for $href in $urls
let $url := string($href)
let $validuri := map:get($map, $url)
let $log := local:log('validURI: ' || $validuri)
let $log2 := local:log('checked URL: ' || $url)
return
if ($validuri = 'notHTTP') then
local:addMessage('TR.urlNotHttp', map { 'filename': local:filename($record), 'id': $rid, 'url': $url })
Expand Down
4 changes: 4 additions & 0 deletions testquery-md.xq
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ declare function local:check-resource-uris($uris as xs:string*, $timeoutInS as x
{
let $remote := $uris[starts-with(.,'http://') or starts-with(.,'https://')]
let $local := $uris[starts-with(.,'#')]
let $logs :=
for $uri in $uris
return
local:log('check-resource-uris: ' || $uri)
return
map:merge((
local:check-http-uris($remote, $timeoutInS, count($remote), 0, map{}, $redirect),
Expand Down

0 comments on commit 633c6ce

Please sign in to comment.