Task #88735 - added.err

back to task #88735
download
Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/go-fdo-server/fdo-utils.sh:72:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   70|     local response
#   71|     response=$(curl --fail --verbose --silent --insecure -w "HTTP_STATUS:%{http_code}" "${owner_url}/api/v1/owner/redirect" 2>/dev/null)
#   72|->   local http_status=$(echo "$response" | grep -o "HTTP_STATUS:[0-9]*" | cut -d: -f2)
#   73|     local body=$(echo "$response" | sed 's/HTTP_STATUS:[0-9]*$//')
#   74|     

Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/go-fdo-server/fdo-utils.sh:73:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
#   71|     response=$(curl --fail --verbose --silent --insecure -w "HTTP_STATUS:%{http_code}" "${owner_url}/api/v1/owner/redirect" 2>/dev/null)
#   72|     local http_status=$(echo "$response" | grep -o "HTTP_STATUS:[0-9]*" | cut -d: -f2)
#   73|->   local body=$(echo "$response" | sed 's/HTTP_STATUS:[0-9]*$//')
#   74|     
#   75|     # Return empty string if not found (404) or any error, otherwise return body

Error: SHELLCHECK_WARNING (CWE-563):
/usr/share/go-fdo-server/fdo-utils.sh:85:32: warning[SC2034]: ip appears unused. Verify use (or export if used externally).
#   83|   # Helper function for POST/PUT operations on /api/v1/owner/redirect
#   84|   _ownerinfo_request() {
#   85|->   local method=$1 owner_url=$2 ip=$3 dns=$4 port=$5 protocol=$6
#   86|     local json='[{"dns":"'${dns}'","port":"'${port}'","protocol":"'${protocol}'"}]'
#   87|     curl --fail --verbose --silent --insecure -X "${method}" "${owner_url}/api/v1/owner/redirect" \