New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: xml error response if project delete fails is missing `code` value #2999

Closed
gschueler opened this Issue Dec 13, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@gschueler
Member

gschueler commented Dec 13, 2017

Issue type: Bug report

My Rundeck detail

  • Rundeck version: 2.10.x

Expected Behavior

500 API error response when there is an error for project delete, should include a code attribute.

How to Reproduce

If a DB error occurs during project delete, the 500 error response will have no code.

example response:

<result error='true' apiversion='20'>
  <error>
    <message>Failed to delete project delete_and_recreate: Hibernate operation: could not execute statement; SQL [n/a]; Timeout trying to lock table ; SQL statement:
delete from base_report where id=? and version=? [50200-193]; nested exception is org.h2.jdbc.JdbcSQLException: Timeout trying to lock table ; SQL statement:
delete from base_report where id=? and version=? [50200-193]</message>
  </error>
</result>

via: rundeck/rundeck-cli#136

@gschueler gschueler added the bug label Dec 13, 2017

@gschueler gschueler added this to the 2.10.2 milestone Dec 13, 2017

gschueler added a commit that referenced this issue Dec 14, 2017

@gschueler gschueler closed this in 06c6b65 Dec 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment