Bug #85657
closed
Accessing the standalone install tool gives a 401 error in the browser console
Added by Markus Klein about 6 years ago.
Updated almost 6 years ago.
Description
Accessing the install tool in standalone mode gives an error in the browser console
typo3/install.php?install[controller]=layout&install[action]=executeSilentConfigurationUpdate&_=1532606775517 401 (Unauthorized)
This does not cause any error in terms of functionality, but is a bit unclean in terms of coding.
- Target version changed from 9 LTS to Candidate for patchlevel
- Status changed from New to Closed
- Target version deleted (
Candidate for patchlevel)
actually, that is NOT fixed: this happens only if you are not logged in (standalone mode and no open be user session), so if the 'enable_install_tool file' is shown.
meanwhile, this is a 403, btw.
i had a look at this, and actually, i'd keep it like that: the simple strategy in the routing is: try to load the tool and if a 403 comes in (user not logged in), then redirect to login/enable_install_tool view. it's just that the silent upgrader is the first think that is tried, so that is the one that fails if you're not logged in.
this strategy is quite straight and saves us from a generic "do i have a session?" ajax call in front that would be performed every single click.
there is also nothing bad with receiving a 403 and then acting upon, see handleAjaxError() in router.js that has been designed to take care of that.
- Related to Task #86347: Improve install tool loading message added
- Related to Bug #86259: Install Tool does not provide a loading indicator added
Also available in: Atom
PDF