wttech/CQ-Unix-Toolkit

Inconsistencies in cqbld error handling

jwadolowski opened this issue · 0 comments

cqbld doesn't handle Package Manager errors in a consistent manner.

Here's how it looks for completely made up username/password/package data (AEM 6.4).

AEM Author

$ ./cqbld -u test -p test123 -i http://vagrant:4502 -g my_packages test-pkg
HTTP RESPONSE 401: Unauthorized properly: please check supplied username and password

$ echo $?
1

AEM Publish

$ ./cqbld -u test -p test123 -i http://vagrant:4503 -g my_packages test-pkg
<crx version="1.8.11" user="anonymous" workspace="crx.default">
  <request>
    <param name="cmd" value="build"/>
    <param name="group" value="my_packages"/>
    <param name="name" value="test-pkg"/>
  </request>
  <response>
    <status code="500">java.lang.IllegalArgumentException: Package 'my_packages:test-pkg' does not exist.</status>
  </response>
</crx>

$ echo $?
0