?
avatar isidrobaq
isidrobaq
23 Sep 2014

Steps to reproduce the issue

1) Upgrade to 3.3.4
2) Edit an article in com_content. Buttons "Save & new" and "Save as copy" are not there

Expected result

Those buttons should be there.

Actual result

Buttons are not there

System information (as much as possible)

Database Version 5.5.38-0ubuntu0.12.04.1
PHP Version 5.3.10
Web Server Apache/2.2.22 (Ubuntu)
WebServer to PHP Interface cgi-fcgi

Additional comments

avatar isidrobaq isidrobaq - open - 23 Sep 2014
avatar betweenbrain
betweenbrain - comment - 23 Sep 2014

I am unable to reproduce this with two different sites and servers.

One is:

Database Version 5.5.38-0ubuntu0.12.04.1
PHP Version 5.3.10-1ubuntu3.14
Web Server Apache/2.2.22 (Ubuntu)
WebServer to PHP Interface apache2handler

The other is:

Database Version 5.6.19-1~dotdeb.1
PHP Version 5.5.17-1~dotdeb.1
Web Server nginx/1.6.2
WebServer to PHP Interface fpm-fcgi

@isidrobaq - could this be a browser cache issue?

avatar Bakual
Bakual - comment - 23 Sep 2014

I can confirm it. And it looks like the permission for core.create is missing.
It's calculated here: https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/views/article/view.html.php#L48

I'm not yet sure why it fails.

avatar mbabker
mbabker - comment - 23 Sep 2014

This patch did it - 49058f3

Previously, the component permissions were always checked. Now, the section permissions are checked if it's injected. We're passing in the article section at that point, which doesn't have the core.create permission.

Weblinks is coded right. The checks there are against the parent category as that has the full permission set (and you need that to do certain things).

avatar brianteeman
brianteeman - comment - 23 Sep 2014

I can confirm this issue as well

avatar betweenbrain
betweenbrain - comment - 23 Sep 2014

Interesting that it doesn't seem to affect all sites.

avatar losedk
losedk - comment - 23 Sep 2014

I can reproduce the issues as well. I don't know if this is related to this issue, but after upgrading I'm missing "Configure Edit Screen" and "Permissions" from the article view

avatar zero-24
zero-24 - comment - 23 Sep 2014

yes @losedk if you revert the commit 49058f3 this is also fixed.

avatar brianteeman
brianteeman - comment - 23 Sep 2014

@losedk I can confirm they are missing as well

@betweenbrain I can confirm this on upgrades and fresh installs both with and without sample content

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

avatar losedk
losedk - comment - 23 Sep 2014

@zero-24 Yeah, just reverted it. It does indeed fix the problem

avatar brianteeman brianteeman - change - 23 Sep 2014
Status New Confirmed
avatar betweenbrain
betweenbrain - comment - 23 Sep 2014

@brianteeman I'm not doubting that you can confirm this, just wondering why it doesn't seem to affect all sites.

avatar brianteeman
brianteeman - comment - 23 Sep 2014

@betweenbrain are the sites that you hae that are not effected with custom acl rules? Thats the only thing I can think of that would explain it

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

avatar betweenbrain
betweenbrain - comment - 23 Sep 2014

@brianteeman No, both are about as basic / core as it can get. One is even a 3.3.3 install without sample data. I was thinking ACL too, but I haven't touched it on either site. Also tested with a non Super User and that user can see the buttons. Odd as it seems like it ought to be broken on all sites.

But, as long as other can confirm the issue and fix, I guess we're good.

avatar TanaseButcaru
TanaseButcaru - comment - 23 Sep 2014

I can confirm both buttons (Save&new / Save as copy) and tabs (Permissions / Configure edit screen) missing on a fresh install of 3.3.4 (no sample data) and on an existing website with 3.3.3 before update.

PHP 5.4.27
Database: 5.5.36
Webserver Apache/2.4.9 (Archlinux)

avatar zero-24 zero-24 - close - 24 Sep 2014
avatar Bakual
Bakual - comment - 24 Sep 2014

Closing this issue in favor of #4331 which should fix it.
Please test and comment on the PR. Thanks.

avatar Bakual Bakual - close - 24 Sep 2014
avatar Bakual Bakual - change - 24 Sep 2014
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2014-09-24 06:19:09
avatar stellainformatica
stellainformatica - comment - 24 Sep 2014

Please note that creating a new article the buttons "Save as Copy" and "Versions" disappear. Probably the reverting fixes also this case, please Bakual create a new PR to test it, thanks ;)

avatar stellainformatica
stellainformatica - comment - 24 Sep 2014

Sorry, the "Save as Copy" and "Versions" buttons hasn't obviously to appear in a new article...

avatar uzielweb
uzielweb - comment - 24 Sep 2014

The patch works fine. Thanks.
https://github.com/joomla/joomla-cms/pull/4331/files

libraries/cms/helper/content.php
Line 124

Change >>>>>

$actions = JAccess::getActionsFromFile($path, "/access/section[@name='" . $section . "']/");

By >>>>>>>

$actions = JAccess::getActionsFromFile($path, "/access/section[@name='component']/");

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

avatar gmng
gmng - comment - 24 Sep 2014

I have cheked it and missing "save as copy" and "save and new" buttons.

PHP Built On Linux 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686
Database Version 5.5.38-0+wheezy1
Database Collation utf8_general_ci
PHP Version 5.4.4-14+deb7u14
Web Server Apache/2.2.22
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.3.4 Stable [ Ember ] 23-September-2014 14:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

avatar PhocaCz
PhocaCz - comment - 25 Sep 2014

Hi, thank you for the patch.

Anyway this problem also affects external extensions - e.g. Phoca Guestbook which uses Joomla! core Category manager to store guestbooks, does not include/render "New" button:

http://www.phoca.cz/forum/viewtopic.php?f=2&t=27047

After applying the patch, everything is OK.

Jan

avatar epidote
epidote - comment - 30 Sep 2014

Just adding that my default clean install was working fine until I installed JCE, then I lost the buttons on articles. Switching back to tinyMCE didn't fix, but patch above worked.

avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment