Ticket #12240 (confirmed Bug)
Logging in on a 404 Plone page displays the 404 message in the overlay
Reported by: | davidjb | Owned by: | |
---|---|---|---|
Priority: | trivial | Milestone: | 4.x |
Component: | General | Version: | 4.1 |
Keywords: | Cc: | amleczko |
Description
When trying to log into a Plone instance from a 404 "This page does not seem to exist" page, the login succeeds. However, the page displays the 'Welcome, you are now logged in' info message, together with the same 404 error message within the overlay.
The HTML in the overlay after logging in like this
<div class="pb-ajax"><div><dl class="portalMessage info" id="kssPortalMessage" style="display:none"> <dt>Info</dt> <dd></dd> </dl><dl class="portalMessage info"> <dt>Info</dt> <dd>Welcome! You are now logged in.</dd> </dl><h1 class="documentFirstHeading"> This page does not seem to exist… </h1><div id="content-core"> <p> We apologize for the inconvenience, but the page you were trying to access is not at this address. <snip>...and more of the 404 message...</snip>
I'm not sure what the expected behaviour here should be (redirect to the navigation root?), but having the login dialog box produce what appears to be a 404 error is confusing.
Tested on Plone 4.1.
Change History
comment:3 Changed 4 years ago by kleist
- Status changed from new to confirmed
- Version set to 4.1
- Component changed from Infrastructure to General
comment:4 Changed 4 years ago by eleddy
good question about what to expect. I would say that this is the correct behavior actually, especially if someone has a custom 404.
comment:5 Changed 4 years ago by davidjb
It makes sense that, by default, if you log in on a certain page, you'll end up logged in on that same page.
My thoughts were that having the "This page does not seem to exist" 404 message appear in the overlay is what's very confusing about this as it makes it look like something broke during login. So, what about re-directing the user to the same URL -- they'll still end up with the 404, but they'll actually known they've successfully logged in.