Skip to content

Can't edit template files on v2.14.0 #14197

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

Closed
ricalexm opened this issue Aug 7, 2024 · 2 comments
Closed

Can't edit template files on v2.14.0 #14197

ricalexm opened this issue Aug 7, 2024 · 2 comments
Assignees
Labels
regression Something that used to work but no longer works s1 Bugs that break core workflows. Only humans may set this. site Area: frontend dashboard

Comments

@ricalexm
Copy link

ricalexm commented Aug 7, 2024

Hello!

I just updated to the latest version, and it appears that I can no longer edit any template files. When I try, the system displays a 404 page and on the logs an unauthorised message appears.

I have tried with a user who has template and workspace admin and also the owner account.

Steps to reproduce:

  1. Create template
  2. Edit files on template

Errors:
2024-08-07 09:37:52.993 [warn] coderd: requester is not authorized to access the object internal_error= request_id=0942ad16-abad-43e5-9322-ee5800d8cce0 roles="[template-admin member organization-member:db55e2dd-3434-48bc-a25b-9f7b141f56cd]" actor_id=23a6d8a5-df39-4487-9ba9-a5f94efe898d actor_name={"FriendlyName":"ricardo","ID":"23a6d8a5-df39-4487-9ba9-a5f94efe898d","Roles":[{"name":"template-admin","display_name":"Template Admin","site":[{"negate":false,"resource_type":"file","action":"create"},{"negate":false,"resource_type":"file","action":"read"},{"negate":false,"resource_type":"group","action":"read"},{"negate":false,"resource_type":"organization","action":"read"},{"negate":false,"resource_type":"organization_member","action":"read"},{"negate":false,"resource_type":"provisioner_daemon","action":"create"},{"negate":false,"resource_type":"provisioner_daemon","action":"delete"},{"negate":false,"resource_type":"provisioner_daemon","action":"update"},{"negate":false,"resource_type":"provisioner_daemon","action":"read"},{"negate":false,"resource_type":"template","action":"delete"},{"negate":false,"resource_type":"template","action":"view_insights"},{"negate":false,"resource_type":"template","action":"update"},{"negate":false,"resource_type":"template","action":"read"},{"negate":false,"resource_type":"template","action":"create"},{"negate":false,"resource_type":"user","action":"read"},{"negate":false,"resource_type":"workspace","action":"read"}],"org":{},"user":[]},{"name":"member","display_name":"Member","site":[{"negate":false,"resource_type":"assign_role","action":"read"},{"negate":false,"resource_type":"oauth2_app","action":"read"},{"negate":false,"resource_type":"provisioner_daemon","action":"read"},{"negate":false,"resource_type":"workspace_proxy","action":"read"}],"org":{},"user":[{"negate":false,"resource_type":"api_key","action":""},{"negate":false,"resource_type":"assign_org_role","action":""},{"negate":false,"resource_type":"assign_role","action":""},{"negate":false,"resource_type":"audit_log","action":""},{"negate":false,"resource_type":"debug_info","action":""},{"negate":false,"resource_type":"deployment_config","action":""},{"negate":false,"resource_type":"deployment_stats","action":""},{"negate":false,"resource_type":"file","action":""},{"negate":false,"resource_type":"group","action":""},{"negate":false,"resource_type":"license","action":""},{"negate":false,"resource_type":"oauth2_app","action":""},{"negate":false,"resource_type":"oauth2_app_code_token","action":""},{"negate":false,"resource_type":"oauth2_app_secret","action":""},{"negate":false,"resource_type":"organization","action":""},{"negate":false,"resource_type":"provisioner_daemon","action":""},{"negate":false,"resource_type":"provisioner_keys","action":""},{"negate":false,"resource_type":"replicas","action":""},{"negate":false,"resource_type":"system","action":""},{"negate":false,"resource_type":"tailnet_coordinator","action":""},{"negate":false,"resource_type":"template","action":""},{"negate":false,"resource_type":"workspace","action":""},{"negate":false,"resource_type":"workspace_proxy","action":""},{"negate":false,"resource_type":"provisioner_daemon","action":"read"},{"negate":false,"resource_type":"provisioner_daemon","action":"create"},{"negate":false,"resource_type":"provisioner_daemon","action":"read"},{"negate":false,"resource_type":"provisioner_daemon","action":"update"},{"negate":false,"resource_type":"user","action":"read"},{"negate":false,"resource_type":"user","action":"read_personal"},{"negate":false,"resource_type":"user","action":"update_personal"},{"negate":false,"resource_type":"workspace_dormant","action":"read"},{"negate":false,"resource_type":"workspace_dormant","action":"delete"},{"negate":false,"resource_type":"workspace_dormant","action":"create"},{"negate":false,"resource_type":"workspace_dormant","action":"update"},{"negate":false,"resource_type":"workspace_dormant","action":"stop"}]},{"name":"organization-member:db55e2dd-3434-48bc-a25b-9f7b141f56cd","display_name":"","site":[],"org":{"db55e2dd-3434-48bc-a25b-9f7b141f56cd":[{"negate":false,"resource_type":"organization","action":"read"},{"negate":false,"resource_type":"assign_org_role","action":"read"}]},"user":[{"negate":false,"resource_type":"organization_member","action":"read"}]}],"Groups":null,"Scope":"all"} scope=all route=/api/v2/deployment/stats action=read object={"id":"","owner":"","org_owner":"","any_org":false,"type":"deployment_stats","acl_user_list":null,"acl_group_list":null}

@coder-labeler coder-labeler bot added bug s3 Bugs that confuse, annoy, or are purely cosmetic site Area: frontend dashboard labels Aug 7, 2024
@matifali matifali added s1 Bugs that break core workflows. Only humans may set this. regression Something that used to work but no longer works and removed s3 Bugs that confuse, annoy, or are purely cosmetic labels Aug 7, 2024
@MRColorR
Copy link
Contributor

MRColorR commented Aug 7, 2024

same here, i can create a template and spin up a workspace from it but when i press on the edit button in source code section of the template i got a 404 error : "This page could not be found."

@stirby
Copy link
Collaborator

stirby commented Aug 7, 2024

We're working to resolve this. Thank you for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Something that used to work but no longer works s1 Bugs that break core workflows. Only humans may set this. site Area: frontend dashboard
Projects
None yet
Development

No branches or pull requests

5 participants