No Code Attached Yet
avatar dautrich
dautrich
9 Jul 2023

Steps to reproduce the issue

  1. Create an article with a publishing date in the future
  2. Save the article
  3. Click on Preview

grafik

Expected result

The article preview is displayed -or- a login screen is presented (behavior for no longer published articles)

Actual result

An error message appears (Error 404)

grafik

System information (as much as possible)

Joomla 4.3.2, PHP 8.1.15

Additional comments

If the "Finish Publishing Date" lies in the past ....

grafik

.... a login screen is shown:

grafik

avatar dautrich dautrich - open - 9 Jul 2023
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jul 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Jul 2023
avatar dautrich dautrich - change - 9 Jul 2023
The description was changed
avatar dautrich dautrich - edited - 9 Jul 2023
avatar dautrich
dautrich - comment - 11 Jul 2023

I'm in doubt whether the logic here is adequate. IMHO the preview should be shown regardless of ACL and/or publishing dates.

Look at the use case: The user is in the backend and has sufficient rights to edit an article. He saves the article and now wants to see the result, because there might be some need for improvement. To be able to preview the article in the backend is a big enhancement over J3. So give him/her the preview regardless of other restrictions like missing user rights or not reached publishing date or expired publishing date! And without the need to login first to preview the article.

avatar alikon alikon - change - 11 Jul 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-07-11 18:14:06
Closed_By alikon
avatar alikon alikon - close - 11 Jul 2023
avatar alikon
alikon - comment - 11 Jul 2023

there is still this one open #24132

so i'll close this in favour of #24132

@dautrich thanks for reporting

avatar dautrich
dautrich - comment - 11 Jul 2023

@alikon
Did you see my additional comment from today? What do you think about that?

avatar alikon
alikon - comment - 12 Jul 2023

@dautrich yes, i've read that.
and i've some memories about, i've even submitted a "bad" pr #35488

please continue on #24132

Add a Comment

Login with GitHub to post a comment