Mailing List Archive

Functions in backend variables interpretted literally
Hi there

I used dynamically named servers on EC2, my varnish bootstrap setup configures the vcl according to the server name e.g.
i-f2dd2d2f

Varnish doesn't like the hyphen in the back end name, so I replace it out, fair enough:
if2dd2d2f

Now it fails because the back end server name has the function 'if' in it!

I now replace this out to:
lol2dd2d2f

I think it may be a bug that the 'if' function is interpreted in a back end variable definition like this.

________________________________

This e-mail, and any attachment, is confidential. If you have received it in error, please delete it from your system, do not use or disclose the information in any way, and notify me immediately. The contents of this message may contain personal views that are not the views of Spotlight, unless specifically stated.
---------------------------------------------------------------------------------------
This email has been scanned for email related threats and delivered safely by Mimecast.
For more information please visit http://www.mimecast.com
---------------------------------------------------------------------------------------
Re: Functions in backend variables interpretted literally [ In reply to ]
Hi,

I suspect you are using an old version.

if2dd2d2f works fine in 4.0.3 and master.

Cheers.

PS: in the future please use varnish-dev or trac for bug reports.

On Wed, Aug 12, 2015 at 4:17 PM, Chris Monteiro <
chris.monteiro@spotlight.com> wrote:

> Hi there
>
>
>
> I used dynamically named servers on EC2, my varnish bootstrap setup
> configures the vcl according to the server name e.g.
>
> i-f2dd2d2f
>
>
>
> Varnish doesn’t like the hyphen in the back end name, so I replace it out,
> fair enough:
>
> if2dd2d2f
>
>
>
> Now it fails because the back end server name has the function ‘if’ in it!
>
>
>
> I now replace this out to:
>
> lol2dd2d2f
>
>
>
> I think it may be a bug that the ‘if’ function is interpreted in a back
> end variable definition like this.
>
> ------------------------------
>
> This e-mail, and any attachment, is confidential. If you have received it
> in error, please delete it from your system, do not use or disclose the
> information in any way, and notify me immediately. The contents of this
> message may contain personal views that are not the views of Spotlight,
> unless specifically stated.
>
>
> ------------------------------
> This email has been scanned for email related threats and delivered safely
> by Mimecast.
> For more information please visit http://www.mimecast.com
> ------------------------------
>
> _______________________________________________
> varnish-bugs mailing list
> varnish-bugs@varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
>