Skip to content
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

Help strings for paster commands #5002

Closed
wood-chris opened this issue Sep 25, 2019 · 2 comments
Closed

Help strings for paster commands #5002

wood-chris opened this issue Sep 25, 2019 · 2 comments

Comments

@wood-chris
Copy link
Contributor

Note: Are you submitting a security related issue that could be a potential vulnerability? Please send it to security@ckan.org instead.

CKAN Version if known (or site URL)

2.8.3

Please describe the expected behaviour

The CKAN Getting Started (https://docs.ckan.org/en/2.8/maintaining/getting-started.html) docs say to run paster sysadmin add seanh email=seanh@localhost name=seanh -c /etc/ckan/default/production.ini, but paster sysadmin --help only says:

sysadmin add USERNAME [FIELD1=VALUE1 FIELD2=VALUE2 ...]
                              - creates a new user that is a sysadmin
                                (prompts for password and email if not
                                supplied).
                                 Field can be: apikey                                          
                                               password
                                               email

Please describe the actual behaviour

Name is missing from the field list help string (or, name isn't a valid field name at all, and the Getting Started page is wrong)

What steps can be taken to reproduce the issue?

n/a

@wardi
Copy link
Contributor

wardi commented Sep 26, 2019

Yes it looks like the documentation is wrong here. Would you care to submit a PR?

@wood-chris
Copy link
Contributor Author

Submitted!

I haven't gone through a lot of the other code in much detail, but I see that the help strings say that apikey is a valid field - I can't see where this is parsed in user_add tho?

amercader added a commit that referenced this issue Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants