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

Custom VCL Snippet Syntax Errors. Unable to Change Type. #511

Open
mr-pmillz opened this issue Feb 23, 2022 · 0 comments
Open

Custom VCL Snippet Syntax Errors. Unable to Change Type. #511

mr-pmillz opened this issue Feb 23, 2022 · 0 comments

Comments

@mr-pmillz
Copy link

mr-pmillz commented Feb 23, 2022

The admin Fastly FPC Custom VCL Snippets UI allows you to edit/modify an existing VCL's type even though it is unable to actually change the VCL's type after it has already been uploaded.

For example,

Lets say you've uploaded a recv type VCL snippet.
image

Later on, you've decided to change it's type.
image

clicking edit, the UI allows you to change/modify the vcl type even though it's not actually able to change a vcl type that has been uploaded.

Doing so will cause syntax errors upon re-uploading the updated vcl snippet as it still thinks that it is the previous vcl's type.
image

Failed to validate service version: Variable `beresp.http.X-UA-Device not accessible in method `vcl_recv` .. in funtion `vcl_recv` ...which is the `vcl_recv` method at (input Line 21011 Pos 7) set beresp.http.X-UA-Device = "mobile"; ------########################------------

This causes one to think there is something wrong with the syntax when in fact, the syntax is correct, just the type cannot be changed after a snippet has already been uploaded as a certain type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant