? ? Success
Pull Request for # 7670

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
10 Aug 2015

See test instructions in #7670.

After patching, the site will exit with a message.
"This site is offline and the Home Page sends a 404 error. Please contact a site administrator."


Steps to reproduce the issue

Create a brand new 3.4.3 site

Trash the article related to the default menu item
Now set the site to offline from Global Configuration.
grab popcorn and watch the front end go to redirect loop.

Expected result

Site should show offline page

Actual result

Site shows redirect loop.

System information (as much as possible)

Fresh Joomla 3.4.3 install

Additional comments

avatar infograf768 infograf768 - open - 10 Aug 2015
avatar infograf768 infograf768 - change - 10 Aug 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Aug 2015
Labels Added: ? ?
avatar zero-24
zero-24 - comment - 10 Aug 2015

hmm works as described.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7676.

avatar zero-24 zero-24 - test_item - 10 Aug 2015 - Tested successfully
avatar zero-24 zero-24 - change - 10 Aug 2015
Category Front End UI/UX
avatar zero-24 zero-24 - change - 10 Aug 2015
The description was changed
Rel_Number 0 7670
Relation Type Pull Request for
Easy No Yes
avatar zero-24
zero-24 - comment - 10 Aug 2015

just added the testinstructions maybe @dhaval-desai can test here also for RTC. Thanks.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7676.

avatar brianteeman
brianteeman - comment - 10 Aug 2015

Please do not merge - the language string is not in english

On 10 August 2015 at 19:34, zero-24 notifications@github.com wrote:

just added the testinstructions maybe @dhaval-desai

https://github.com/dhaval-desai can test here also for RTC. Thanks.

This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at issues.joomla.org/joomla-cms/7676
http://issues.joomla.org/tracker/joomla-cms/7676.


Reply to this email directly or view it on GitHub
#7676 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar watchfulli-dev
watchfulli-dev - comment - 11 Aug 2015

@test Indeed with J3.4.3 trashing article used by default menu item cause a redirect loop. After applying the patch it shows this message "This site is offline and the Home Page sends a 404 error. Please contact a site administrator." no more redirect loop.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7676.

avatar watchfulli-dev watchfulli-dev - test_item - 11 Aug 2015 - Tested successfully
avatar infograf768
infograf768 - comment - 11 Aug 2015

It should be enough to just display
"This site is offline please contact a site administrator."

I disagree. The more important information (as it is in fact aimed at the site administrator), is that the home page sends a 404, as otherwise the message does not help.
If you consider it is not in good English, please propose something which includes the fact that we get a 404 for the Home page.

avatar brianteeman
brianteeman - comment - 11 Aug 2015

The site is offline - it does NOT matter that you tell someone its a 404.
it is enough to say the site is offline.
What is the benefit for saying it is a 404

On 11 August 2015 at 08:45, infograf768 notifications@github.com wrote:

It should be enough to just display
"This site is offline please contact a site administrator."

I disagree. The more important information (as it is in fact aimed at the
site administrator), is that the home page sends a 404, as otherwise the
message does not help.
If you consider it is not in good English, please propose something which
includes the fact that we get a 404 for the Home page.


Reply to this email directly or view it on GitHub
#7676 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar mbabker
mbabker - comment - 11 Aug 2015

IMO if the site is offline, for the general viewing public (unauthenticated users), that should take precedence over the 404 response. Once a user has logged into the frontend of that offline site, then they should be made aware of the 404 (and I think that'll be handled with normal error handling routines in that case).

avatar Bakual
Bakual - comment - 11 Aug 2015

IMO if the site is offline, for the general viewing public (unauthenticated users), that should take precedence over the 404 response.

That's what I wonder with this issue. Why does it even check if the URL is a valid request when the site is offline? Shouldn't it just show that offline page right away when not authenticated? Imho it shouldn't even go into the component dispatching/routing stage and bail out earlier.

avatar mbabker
mbabker - comment - 11 Aug 2015

Imho it shouldn't even go into the component dispatching/routing stage and bail out earlier.

You must not be aware of how "bad" Joomla's offline mode is then :wink:

http://magazine.joomla.org/issues/issue-feb-2011/item/378-how-offline-is-joomla-offline-mode

avatar Bakual
Bakual - comment - 11 Aug 2015

You must not be aware of how "bad" Joomla's offline mode is then :wink:

No, I wasn't. Funny thing that :smile:

avatar infograf768
infograf768 - comment - 11 Aug 2015

Folks, at reading http://magazine.joomla.org/issues/issue-feb-2011/item/378-how-offline-is-joomla-offline-mode it looks like this needs another solution than this bandaid.
Closing.

avatar infograf768 infograf768 - change - 11 Aug 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-08-11 15:10:52
Closed_By infograf768
avatar infograf768 infograf768 - close - 11 Aug 2015
avatar infograf768 infograf768 - head_ref_deleted - 11 Aug 2015
avatar infograf768
infograf768 - comment - 11 Aug 2015

@nikosdion
Time to implement a real solution I guess. :smiley:

avatar nikosdion
nikosdion - comment - 11 Aug 2015

If you don't care about backwards compatibility and you are happy with me disemboweling the JApplicationCms routing AND adding a hardcoded dependency to com_users deep in its new guts, sure enough, I can make a real offline mode.

BUT! Things Shall Break.

If your site depends on some plugin or component doing some important work (e.g. unpublish expiring subscriptions, update search indices, backup your site...) on a schedule and the site is REALLY off-line then you will perceive your site as broken. Is this something we are even allowed to think about in the 3.x release cycle?

avatar infograf768
infograf768 - comment - 11 Aug 2015

Sure not, just teasing you... :smiley:

avatar nikosdion
nikosdion - comment - 11 Aug 2015

So let's leave it broken :p

avatar infograf768
infograf768 - comment - 11 Aug 2015

:clap:

Add a Comment

Login with GitHub to post a comment