From 2d54f971fd99dcecb018a1dc13d4261774f8801a Mon Sep 17 00:00:00 2001 From: Fredrik Domeij Date: Thu, 18 Jul 2019 15:06:17 +0200 Subject: testGeantCoCo tuning - replace & with & in PrivacyStatementURL (fix prisma.research.se-shibboleth.xml false positive) - use "Mozilla" as User-Agent instead of curl for PrivacyStatementURL fetching (fix auth.asiaportal.info.xml false positive) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9a38732c..69f6c5f7 100644 --- a/Makefile +++ b/Makefile @@ -142,10 +142,10 @@ testGeantCoCo: mdui_Test=`cat $$x | sed 's;\(/dev/null | grep $$y | grep 'xml:lang="en"'` ; \ if [ -z "$$mdui_Test" ] ; then echo " $$x: Missing xml:lang=\"en\" on mdui:$$y." | sed 's/.*/&/' ; fi ; \ done ; \ - mdui_PrivacyStatementURL=`cat $$x | sed 's;\(/dev/null | grep 'PrivacyStatementURL'` ; \ + mdui_PrivacyStatementURL=`cat $$x | sed 's;\(/dev/null | grep 'PrivacyStatementURL' | sed 's/&/\&/g'` ; \ if [ -z "$$mdui_PrivacyStatementURL" ] ; then echo " $$x: Missing PrivacyStatementURL." | sed 's/.*/&/' ; \ else \ - echo $$mdui_PrivacyStatementURL | sed 's/>\n\(.*\)<.*/\1 \2/' | while read lang url ; do curl -s -L -m 5 $$url | grep http://www.geant.net/uri/dataprotection-code-of-conduct/v1 -q || echo " $$x missing link to geant.net in PrivacyStatementURL $$lang" | sed 's/.*/&/' ; done ; \ + echo $$mdui_PrivacyStatementURL | sed 's/>\n\(.*\)<.*/\1 \2/' | while read lang url ; do curl -A 'Mozilla' -s -L -m 5 $$url | grep http://www.geant.net/uri/dataprotection-code-of-conduct/v1 -q || echo " $$x missing link to geant.net in PrivacyStatementURL $$lang" | sed 's/.*/&/' ; done ; \ fi ; \ fi ; \ requestedAttribute=`cat $$x | sed 's;\(/dev/null | grep 'RequestedAttribute'` ; \ -- cgit v1.2.3