You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Daniel Gruno (JIRA)" <ji...@apache.org> on 2015/12/06 13:50:11 UTC

[jira] [Updated] (INFRA-10240) closer.lua: add option to return just the preferred server

     [ https://issues.apache.org/jira/browse/INFRA-10240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Gruno updated INFRA-10240:
---------------------------------
    Status: Waiting for user  (was: Waiting for Infra)

Should the preferred host be returned just as a string? or inside JSON?

> closer.lua: add option to return just the preferred server
> ----------------------------------------------------------
>
>                 Key: INFRA-10240
>                 URL: https://issues.apache.org/jira/browse/INFRA-10240
>             Project: Infrastructure
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>            Reporter: Sebb
>
> The closer.lua script already supports output in JSON format (?asjson=1)
> JSON is not particularly difficult to parse, but it seems to me that it is quite likely that many projects are just interested in the preferred server URL.
> It might therefore be useful to add an option to return this only?
> This would reduce the work by the server and the client.
> For example, the syntax could be:
> http://www.apache.org/something.cgi?action=preferred
> Note that it is already possible to get this info as follows:
> http://www.apache.org/anything.cgi?action=download&filename=
> The preferred URL will be returned as the 'Location" header in a 302 response. However this is not ideal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)