JavaUpload: "^SUCCESS$" was not found in the response header

Phoca Gallery - image gallery extension
m701
Phoca Member
Phoca Member
Posts: 11
Joined: 09 Apr 2008, 12:50

JavaUpload: "^SUCCESS$" was not found in the response header

Post by m701 »

Hi all,
i had the same error. Cause is the (useful !!!) php-setting "session.cookie_httponly = On". This setting marks the session-cookie as accessible only through the HTTP protocol.

Solution 1: Set session.cookie_httponly = 0 in /etc/php5/apache2/php.ini. Restart apache.

or better

Solution 2: Add
<param name="readCookieFromNavigator" value="false">
<param name="specificHeaders" value="Cookie: <?php echo $this->session->getName().'='.$this->session->getId();?>">
in ./administrator/components/com_phocagallery/views/phocagallerym/tmpl/form_javaupload.php after line 35 and after line 18.

Systemdata: Suse-Linux 10.3, Apache/2.2.4, PHP 5.2.11, Joomla 1.5.15, Phoca_Gallery 2.5.8

Best regards
Günter
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: JavaUpload: "^SUCCESS$" was not found in the response header

Post by Jan »

Hi, thank you for this information.

Jan
If you find Phoca extensions useful, please support the project
m701
Phoca Member
Phoca Member
Posts: 11
Joined: 09 Apr 2008, 12:50

Re: JavaUpload: "^SUCCESS$" was not found in the response header

Post by m701 »

Hi, can i hope that solution 2 will be considered in the next version?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: JavaUpload: "^SUCCESS$" was not found in the response header

Post by Jan »

Hi, I will take a look at it (2), but it seems this solution can be security problem for the site :-(
If you find Phoca extensions useful, please support the project
m701
Phoca Member
Phoca Member
Posts: 11
Joined: 09 Apr 2008, 12:50

Re: JavaUpload: "^SUCCESS$" was not found in the response header

Post by m701 »

Solution 1 could be a problem, because session.cookie_httponly = 1 can effectively help to reduce identity theft through XSS attacks. So I prefer solution 2. Perhaps this behavior should be configurable.
m701
Phoca Member
Phoca Member
Posts: 11
Joined: 09 Apr 2008, 12:50

Re: JavaUpload: "^SUCCESS$" was not found in the response header

Post by m701 »

Hi,
please forget it and delete the complete thread!
donkeyslo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 12 Mar 2009, 15:32

Re: JavaUpload: "^SUCCESS$" was not found in the response header

Post by donkeyslo »

This solved my problem, my question now is if it is ok to use this hack or not?
Post Reply