From 27ab733685930a8c967c3f28197fc34f98123010 Mon Sep 17 00:00:00 2001 From: luccioman Date: Fri, 29 Sep 2017 19:18:12 +0200 Subject: [PATCH] Ensure private search features are not lost on Digest auth timeout This is a fix for mantis 766 ( http://mantis.tokeek.de/view.php?id=766 ) Since the upgrade to Digest authentication, access to protected search features was indeed disabled once the Digest nonce timed out. After Digest auth timeout the browser no more sent authentication information and as the search results page is not private, protected features were simply be hidden without asking browser again for authentication. Adding a supplementary parameter when accessing the search results as authenticated fixes this. --- htroot/env/templates/header.template | 3 + htroot/index.html | 3 + htroot/yacysearch.html | 3 + htroot/yacysearch.java | 21 ++++-- htroot/yacysearchitem.html | 2 +- htroot/yacysearchitem.java | 42 +++++++++--- htroot/yacysearchlatestinfo.java | 16 ++++- htroot/yacysearchtrailer.java | 44 ++++++++++--- source/net/yacy/search/query/QueryParams.java | 65 ++++++++++++------- 9 files changed, 152 insertions(+), 47 deletions(-) diff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.template index 32e70cc59..639e7ec2a 100644 --- a/htroot/env/templates/header.template +++ b/htroot/env/templates/header.template @@ -20,6 +20,9 @@ + #(authorized)#:: + + #(/authorized)#