POST /v1/users is duplicating the validation of project_id

Bug #1674738 reported by git-harry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
craton
Confirmed
Medium
Sulochan Acharya

Bug Description

The post function is attempting to get the project_id supplied in the request [1]. This duplicates something does implicitly by users_create without providing any additional error reporting to clarify the failure to the end user. I think it would make more sense to handle this within users_create.

[1] https://github.com/openstack/craton/blob/3d5677c92b6b538cb94a6c6f721ba9010dec6eb3/craton/api/v1/resources/users.py#L46

Changed in craton:
milestone: none → v0.2.0
assignee: nobody → Sulochan Acharya (sulochan-acharya)
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.