Actions

J2.5 talk

Difference between revisions of "Developing a MVC Component/Adding a view to the site part"

From Joomla! Documentation

(New page: i got this error message when trying to install the archive here... Error building Admin Menus)
 
(XML Installation Problem: new section)
(7 intermediate revisions by 4 users not shown)
Line 2: Line 2:
  
 
Error building Admin Menus
 
Error building Admin Menus
 +
 +
== Security issue?!!! ==
 +
 +
Hello,
 +
 +
it seems to me that calling:
 +
 +
$controller->execute(JRequest::getCmd('task'));
 +
 +
is quite insecure if one does not check the 'task' variable!
 +
 +
Please give your opinions and notice me at tomas.telensky (that at sign) gmail (dot) com.
 +
 +
JRequest::getCmd() filters the 'task' request variable so any bad characters will be removed.  Furthermore, the controller execute() method will only execute methods that are flagged as public in the controller.  How is that insecure? [[User:Chris Davenport|Chris Davenport]] 20:04, 17 March 2011 (UTC)
 +
 +
 +
== Installer problem ==
 +
 +
When I try to install helloworld component I see this message:
 +
 +
JInstaller: :Install: Cannot find XML setup file
 +
JInstaller: :Install: Cannot find XML setup file
 +
Copy failed
 +
 +
== XML Installation Problem ==
 +
 +
To get the installation to work in the XML file, replace <name>Hello World!</name> with <name>com_helloworld</name>. This seems to work.

Revision as of 06:15, 31 October 2012

i got this error message when trying to install the archive here...

Error building Admin Menus

Security issue?!!!

Hello,

it seems to me that calling:

$controller->execute(JRequest::getCmd('task'));

is quite insecure if one does not check the 'task' variable!

Please give your opinions and notice me at tomas.telensky (that at sign) gmail (dot) com.

JRequest::getCmd() filters the 'task' request variable so any bad characters will be removed. Furthermore, the controller execute() method will only execute methods that are flagged as public in the controller. How is that insecure? Chris Davenport 20:04, 17 March 2011 (UTC)


Installer problem

When I try to install helloworld component I see this message:

JInstaller: :Install: Cannot find XML setup file JInstaller: :Install: Cannot find XML setup file Copy failed

XML Installation Problem

To get the installation to work in the XML file, replace <name>Hello World!</name> with <name>com_helloworld</name>. This seems to work.