Security Violation

austinm

Joined: 2005-04-14
Posts: 6
Posted: Thu, 2005-04-14 06:57

A while ago I embedded Gallery into Mambo. It worked just fine until a couple of days ago. Suddenly this error appears when I enter the Gallery through the Mambo site: “Security Violation

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2005-04-14 07:01

The path to your Gallery moved... you need to update the path in your component configuration.

 
austinm

Joined: 2005-04-14
Posts: 6
Posted: Thu, 2005-04-14 07:14

I've not done any changes to the gallery or on the server, and the path in the component configuration seems correct. But maybe I'm missing something. Can you please explain further?

 
austinm

Joined: 2005-04-14
Posts: 6
Posted: Fri, 2005-04-15 07:32

Does anyone know if there is any other cause(s)/ solution(s) to this problem? Maybe it can happen when implementing other modules in Mambo?

I've talked with others that have had the same problem. They've reinstalled all and made sure that they installed gallery last.

Currently I think that's a bit drastic.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2005-04-15 08:00

The error appears when the component tries to load Gallery and can't find it.

The path in your Gallery component setup doesn't match the path where Gallery actually exists. If it looks right, check for extra spaces at the beginning and end of the string. Verify that it's correct, and re-type it.

The only other times that the string "Security Violation" occurs in the entire Gallery codebase are when you are intentionally trying to hack Gallery.

 
austinm

Joined: 2005-04-14
Posts: 6
Posted: Fri, 2005-04-15 11:09

DocumentRoot: /hsphere/local/home/aalesund/aalesund-tkd.org

Gallery: /hsphere/local/home/aalesund/aalesund-tkd.org/album/

Components path: /hsphere/local/home/aalesund/aalesund-tkd.org/album/

I've re-typed it, checked for spaces, verified the path, verified again, tried to reach the path from other applications, tried to create a new link, but I can't find anything wrong anywhere. Maybe it's the server that does something with the path? This is annoying, it worked just fine before.

 
austinm

Joined: 2005-04-14
Posts: 6
Posted: Mon, 2005-04-18 08:51

Is it possible that Gallery believes that it's being hacked trough Mambo? Or would I also experience this error on other levels then?

What exactly does the component try to do when I enter the link? Does it try to write to a file?

Have to check all possibilities...

 
austinm

Joined: 2005-04-14
Posts: 6
Posted: Wed, 2005-04-27 09:00

I still haven't found any solution to this.

Does anyone know what the component tries to do when I enter the link in Mambo? Does it try to write to a file, or?

 
china243

Joined: 2005-05-06
Posts: 1
Posted: Fri, 2005-05-06 14:12

For some reason the field "path" in the table XXX_gallery in the mambo database was not being updated automatically.

I've included the correct path manually and solved the problem.

Maybe you should check the database in phpmyadmin or something...

Cogito ergo doleo

[]s
China
http://weblivre.br101.org

 
RikBlankestijn

Joined: 2004-07-28
Posts: 2
Posted: Sat, 2005-10-01 20:11

for the record when some one searches for this issue:

I installed the latest stable mambo and gallery1 and installed the gallery as component through the administration menu in mambo. Both work fine stand-alone but got "Security violation" for gallery in mambo too.
The problem is that the configurator in mambo thinks that the table is called "mos_gallery" and gallery thinks it is "gallery". mos_gallery is actually created by the gallery-component installer.

To fix it: drop the "mos_gallery" table and create a table called "gallery".
edit: administrator/components/com_gallery/admin.gallery.php and rename all the associated tables to "gallery". Then the component configurator will store your values. And now your gallery will work inside mambo.
You might also change the gallery.xml file but that's only needed while installing the component, so it would be only useful for reinstallation.

You also could have choosen to leave the table to mos_gallery but you have to edit a whole lot more files in the gallery.

Good luck!