diff --git a/library.bash b/library.bash index d70e694..ff08822 100644 --- a/library.bash +++ b/library.bash @@ -108,7 +108,12 @@ function get_object () { local OID=$2 OUTFILE=$(mktemp /tmp/get.XXXXXX) echo out file is $OUTFILE - curl -k --user administrator:5ecr3t -H "Content-Type: application/xml" -X GET "https://localhost:8443/midpoint/ws/rest/$TYPE/$OID" >$OUTFILE || (rm $OUTFILE ; return 1) + #FIXME workaround for MID-6721 bug + if [ "$TYPE" == "tasks" ]; then + PARAM='?include=result' + fi + + curl -k --user administrator:5ecr3t -H "Content-Type: application/xml" -X GET "https://localhost:8443/midpoint/ws/rest/$TYPE/$OID$PARAM" >$OUTFILE || (rm $OUTFILE ; return 1) return 0 }