Forum

JiFile for Joomla!

JIFile
JiFile is a component for Joomla! that allows you to index file contents (PDF, DOC, etc..) to perform searches in them.

Learn more...  Demo

JoomPhoto Mobile

JPhotoMobile
JoomPhoto Mobile is a component for Joomla! that allows you to share the photos from your Android device to your site Joomla.

Learn more...  Demo

iFile Framework

IFile
IFile is an open source framework written entirely in PHP, allows the indexing of textual content of a document (DOC, PDF, EXCEL, etc.) and a quick search within them.

Learn more...  Demo

Easy Language

EasyLanguage
Easy Language is a plugin for easy and immediate management of multilingual texts in every possible area of joomla, articles, components, modules, metadata, template, other components(example K2) etc.

Learn more...

Article Book Effect

Article Book Effect
View Joomla articles with the effect turns the page of a book. This plugin will display the contents of an article in Joomla as a real book or magazine, using all the benefits of HTML5

Learn more...  Demo

 

Passport photo

Passport photo
The most popular Android app that allows you to print photos cards for your documents with your Android smartphone, in a simple and intuitive way.

Learn more...

 

Crazy Shadow

Crazy Shadow
Crazy Shadow is the 3D fast-paced and fun puzzle Android game! Try to rotate and drag shapes in the position of their shadows without fail! Solve in succession all combinations of levels of the game.

Learn more...

 

Admin Countdown

Admin Countdown
Module for Joomla! 2.5 and 3.x displays in the administration part of the site, a timer with countdown of the time remaining in your session.

Learn more...  Demo

 
Welcome, Guest
Username: Password: Remember me

TOPIC: Bug into Jifile declaring : core.action

Bug into Jifile declaring : core.action 15 Jul 2012 16:28 #473

  • crony
  • crony's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Thank you received: 2
Hello,

Using ACL component, a very great component that runs ACL of Joomla!, with the (amazing) help of the developper of this extension ( Sander Potjer) that point a problem with the declaration not right for Joomla!'s component.

Your component is impacted.
Here's the problem :
The issue is with an component that is using the Joomla ACL system, but not correctly. In the access.xml file the defined an action "core.filesystem", which sould be "nameextension.filesystem". This is causing issues when saving changes in ACL Manager.

So, into your access.xml into your administrator/com_jifile/access.xml you have :
<?xml version="1.0" encoding="utf-8" ?>
<access component="com_jifile">
	<section name="component">
		<action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" />
		<action name="core.filesystem" title="JACTION_FILESYSTEM" description="JACTION_FILESYSTEM_DESC" />
		<action name="core.index" title="JACTION_INDEX" description="JACTION_INDEX_DESC" />
		<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" />
	</section>
</access>

But it should be:
<?xml version="1.0" encoding="utf-8" ?>
<access component="com_jifile">
	<section name="component">
		<action name="jifile.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" />
		<action name="jifile.filesystem" title="JACTION_FILESYSTEM" description="JACTION_FILESYSTEM_DESC" />
		<action name="jifile.index" title="JACTION_INDEX" description="JACTION_INDEX_DESC" />
		<action name="jifile.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" />
	</section>
</access>

Of course remplacement into files that are calling these action has to be updated (4 more files impacted, I've made a full remplacement with notepad++ , I had 6 occurences on some actions, but you get the point...)

admin\com_jifile\controllers\filesystem.php
admin\com_jifile\views\filesystem\view.html.php
admin\com_jifile\views\frontpage\tmpl\default.php
admin\com_jifile\views\lucene\view.html.php

Please correct this for the next upgrade :)

Best regards
The administrator has disabled public write access.
The following user(s) said Thank You: Antonio

Re: Bug into Jifile declaring : core.action 15 Jul 2012 19:16 #475

  • Antonio
  • Antonio's Avatar
  • OFFLINE
  • Administrator
  • Posts: 486
  • Thank you received: 66
Right, thank you so much, I do now

regards
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
The administrator has disabled public write access.