[19030] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: Make error messages more useful: add a URI

daemon@ATHENA.MIT.EDU (Roland Mainz)
Mon Oct 6 05:30:26 2014

Date: Mon, 6 Oct 2014 05:30:11 -0400 (EDT)
From: Roland Mainz <rmainz@redhat.com>
To: Nico Williams <nico@cryptonector.com>
Message-ID: <1702359831.40573577.1412587811312.JavaMail.zimbra@redhat.com>
In-Reply-To: <20141002211507.GB412@localhost>
MIME-Version: 1.0
Cc: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu



----- Original Message -----
> From: "Nico Williams" <nico@cryptonector.com>
> To: "Greg Hudson" <ghudson@mit.edu>
> Cc: krbdev@mit.edu
> Sent: Thursday, October 2, 2014 11:15:08 PM
> Subject: Re: Make error messages more useful: add a URI
> 
> 
> Roland suggests:
> 
> [libdefaults]
> 
>     err_fmt = %E. Please see https://whatever.example/%N
> 
> where %E is whatever the error string would have been and %N is the
> error code number (or symbolic name for it).
> 
> The default would be %E.
> 
> Additional contextual information could be provided with other tokens.
> 
> This would allow sites to use URIs or some other non-URI string if they
> prefer.

BTW: Three nits:
1. Some error messages carry additional information, like an errno message. How can we integrate this ?
2. How can we carry over the value of LC_MESSAGES (or better: The result of LANG/LC_MESSAGES/LC_ALL, e.g. $ printf '%s\n' "${LC_ALL:-${LC_MESSAGES:-${LANG:-"C"}}}" # in a POSIX shell) ?
3. What about intranets with no connection to the outside "world" ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) rmainz@redhat.com
  \__\/\/__/  IPA/Kerberos5 team
  /O /==\ O\  
 (;O/ \/ \O;)
 
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post