The Wayback Machine - https://web.archive.org/web/20201116061823/https://github.com/ansible/awx/issues/7665
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

API should not accept modification of local_path for nom-manual projects #7665

Open
AlanCoding opened this issue Jul 20, 2020 · 0 comments
Open

Comments

@AlanCoding
Copy link
Member

@AlanCoding AlanCoding commented Jul 20, 2020

ISSUE TYPE
  • Bug Report
SUMMARY

The API will accept a PATCH to edit local_path for a git project, but the change will not take effect.

Some version of a 400 error would be preferable to this. This is a valid field to edit in the case of manual projects, so there's no valid justification that it's "not a field".

ENVIRONMENT
  • AWX version: 13.0.0
  • AWX install method: N/A
  • Ansible version: N/A
STEPS TO REPRODUCE

PATCH /api/v2/projects/6/

{
  "description": "asdf",
  "local_path": "_6__demo_project_edited"
}
EXPECTED RESULTS

One of:

  • the local_path value changes to "_6__demo_project_edited"
  • get error
ACTUAL RESULTS

No error

description changes to "asdf"

the local_path remains at prior value of "_6__demo_project"

@thedoubl3j thedoubl3j self-assigned this Oct 22, 2020
thedoubl3j added a commit to thedoubl3j/awx that referenced this issue Oct 27, 2020
softwarefactory-project-zuul bot added a commit that referenced this issue Oct 27, 2020
related #7665 added 400 if user attempts an edit to local_path in a SCM project

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.