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

Key browser dialog is broken for new projects #2919

Closed
leonboot opened this Issue Nov 8, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@leonboot

leonboot commented Nov 8, 2017

Issue type: Bug report

When creating a new project, the key browser dialog yields a Javascript error: Uncaught TypeError: Cannot read property 'get' of undefined.

My Rundeck detail

  • Rundeck version: 2.10.0-1
  • install type: deb (from bintray repo)
  • OS Name/version: Ubuntu Server 16.04.3
  • DB Type/version: mysql

Expected Behavior

When creating a new project, clicking the Select... button next to any of the SSH Key Storage Path or SSH Password Storage Path fields should present the user with a dialog containing all keys uploaded via the key storage.

Actual Behavior

When clicking the Select... button, the dialog appears, but no key files appear. The Loading... message keeps being displayed. When opening the browser console, this Javascript error shows up:

Uncaught TypeError: Cannot read property 'get' of undefined
    at _createResponder (prototype.min-0f8d9f14cc56b66dac0074033bae806d.js:5588)
    at Function.observe (prototype.min-0f8d9f14cc56b66dac0074033bae806d.js:5667)
    at klass.pageInit (resourceModelConfig.unminified.js:255)
    at HTMLDocument.init (createProject:204)
    at p (jquery.unminified.js:3048)
    at Object.fireWith [as resolveWith] (jquery.unminified.js:3160)
    at Function.ready (jquery.unminified.js:433)
    at HTMLDocument.S (jquery.unminified.js:104)

How to reproduce Behavior

  • Make sure one or more files exist in the Key Storage;
  • Create a new project;
  • Click on any of the the Select... buttons next to the SSH Key/Password Storage Path fields;
  • Note the files in the Key Storage are not being displayed, instead the Loading... message remains in place.

N.B.: after saving the project and editing the project configuration again, the key storage dialog is working as expected.

@gschueler gschueler added the bug label Nov 15, 2017

@gschueler gschueler added this to the 2.10.x milestone Nov 15, 2017

@gschueler gschueler closed this in 21c4c21 Nov 16, 2017

gschueler added a commit that referenced this issue Nov 16, 2017

Merge pull request #2939 from rundeck/rundeck-2919
Fix #2919 Key browser dialog is broken for new projects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment