[Kimchi-devel] [PATCH] Bug fix: Do not require login for simple resources

Rodrigo Trujillo rodrigo.trujillo at linux.vnet.ibm.com
Wed Jun 18 17:55:35 UTC 2014


Reviewed-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>
Tested-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>

On 06/18/2014 02:53 PM, Crístian Viana wrote:
> The subdirectories "css", "js", "libs" and "images" currently require
> a login session to be accessed. Those files are simple resources, thus
> they don't need to be protected.
> One consequence of this behavior is that it is not possible to create a remote
> template with the current security settings.
>
> Remove the login session requirement to access the subdirectories "css",
> "js", "libs" and "images".
>
> Signed-off-by: Aline Manera <alinefm at br.ibm.com>
> Signed-off-by: Crístian Viana <vianac at linux.vnet.ibm.com>
> ---
>   src/kimchi/config.py.in | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/kimchi/config.py.in b/src/kimchi/config.py.in
> index 74c8fa5..4be767e 100644
> --- a/src/kimchi/config.py.in
> +++ b/src/kimchi/config.py.in
> @@ -154,6 +154,7 @@ class UIConfig(dict):
>               ui_configs['/' + sub_dir] = {
>                   'tools.staticdir.on': True,
>                   'tools.staticdir.dir': os.path.join(paths.ui_dir, sub_dir),
> +                'tools.kimchisession.on': False,
>                   'tools.nocache.on': False}
>               if sub_dir != 'images':
>                   ui_configs['/' + sub_dir].update({




More information about the Kimchi-devel mailing list