API: POST to key storage can create root file #2181

Closed
gschueler opened this Issue Nov 17, 2016 · 0 comments

Projects

None yet

1 participant

@gschueler
Contributor

Bug report

My Rundeck detail

  • Rundeck version: 2.6.x
  • install type: any
  • Key storage configuration: filesystem

Expected Behavior

Using the Key Storage Create API with an empty path will cause an error.

Actual Behavior

Using the Key Storage Create API with an empty path will create an entry at the root, preventing
any other key

How to reproduce Behavior

POST http://madmartigan.local:4440/api/18/storage/keys/ HTTP/1.1
Content-Type: application/x-rundeck-data-password
Content-Length: 10
Accept: application/json

password1
@gschueler gschueler added this to the 2.7.0 milestone Nov 17, 2016
@gschueler gschueler added the bug label Nov 28, 2016
@gschueler gschueler closed this Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment