You are here: Foswiki>Tasks Web>Item14389 (03 May 2017, EwanCormack)Edit Attach

Item14389: valid authority specifier does not work from behind a proxy server

Priority: Low
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: Configure
Reported By: EwanCormack
Waiting For:
Last Change By: EwanCormack
When a server is behind a firewall and needs to use a proxy server to access external websites the valid authority specifier does not work.

In the config page, when you click Extensions=> Updates Plugin or Extensions => Extension operation and maintenance an error is shown " is not a valid authority specifier (hostname). Lookup returned: Name or service not known "

Updates work and extensions can be installed so this is not a valid error.

It appears the valid authority specifier is not making use of the {PROXY}{HOST} configuration directive.

  • Screenshot of error:
    Foswiki error.JPG

-- EwanCormack - 03 May 2017

This particular check uses the gethostbyname perl function which calls the underlying host function to do a DNS lookup. It doesn't know anything about the proxy configuration, and I've been unable to see any way to pass the DNS requests through the Proxy.

-- GeorgeClark - 03 May 2017

As this is actually a check for a URL, the fact the host exists is kind of irrelevant.

Perhaps checking the URL with if (head($url)) may be more appropriate?

-- EwanCormack - 03 May 2017

ItemTemplate edit

Summary valid authority specifier does not work from behind a proxy server
ReportedBy EwanCormack
SVN Range
AppliesTo Engine
Component Configure
Priority Low
CurrentState Confirmed
TargetRelease n/a
ReleasedIn n/a
Topic attachments
I Attachment Action Size Date Who Comment
Foswiki error.JPGJPG Foswiki error.JPG manage 40 K 03 May 2017 - 01:11 EwanCormack Screenshot of error
Topic revision: r3 - 03 May 2017, EwanCormack - This page was cached on 12 Sep 2020 - 20:30.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy