Custom VCL Snippet Syntax Errors. Unable to Change Type.
mr-pmillz opened this issue · 0 comments
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.
Later on, you've decided to change it's type.
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.
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.