SCS-CBU-CED-IAM / mobileid

Mobile ID Sample Scripts
http://mobile-id.ch
13 stars 5 forks source link

Wrong filename defined for the request messge content #59

Closed phaupt closed 10 years ago

phaupt commented 10 years ago
$ sh -x ./mobileid-sign.sh -d +41792453628 'Sign?' en
...
+ [ -f /tmp/_tmp.3I0c26 ]
+ echo >>> /tmp/_tmp.3I0c26 <<<
>>> /tmp/_tmp.3I0c26 <<<
+ xmllint --format -
+ cat /tmp/_tmp.3I0c26
-:1: parser error : Document is empty

^
-:1: parser error : Start tag expected, '<' not found

^
I/O error : Invalid seek

Reason:

[ -f "$TMP" ] && echo ">>> $TMP <<<" && cat $TMP | xmllint --format -

should be:

[ -f "$TMP.req" ] && echo ">>> $TMP.req <<<" && cat $TMP.req | xmllint --format -