JAVA Uploader not working error 401 Authorization Required

Phoca Gallery - image gallery extension
xanadude
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 07 Dec 2008, 23:03

JAVA Uploader not working error 401 Authorization Required

Post by xanadude »

I have loaded 2.2.4 but cant get the Java to Upload
All i get is an alert windows stating Received HTTP status 401 Authorization Required

I have set the folders to 777 but no change

Normal upload single file works fine

Many thaanks

Roger
Jomla 1.5.11
Phoca Gallery 2.2.4
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48913
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: JAVA Uploader not working error 401 Authorization Required

Post by Jan »

Hi, do you have enabled ftp layer for your Joomla!, if not try to enable it.

Jan
If you find Phoca extensions useful, please support the project
Flachzange
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 28 Aug 2009, 14:10

Re: JAVA Uploader not working error 401 Authorization Required

Post by Flachzange »

Hey,
I got the same issue.
Popup "received http status 401 authorization required" in Javaapplet for uploading Images in the Frontend and the Backend.
Joomla 1.5.14 Phoca Gallery 2.5.7 Beta

The Problem is, that the whole page ist Secured with htaccess. If I delete the lines for authorization
AuthUserFile /www/htdocs/blabla/.htpasswd
AuthGroupFile /www/htdocs/blabla/.htgroup
AuthName "blabla"
AuthType Basic
require group bla
require valid-user
it works fine.

Probably I found a usefull hint.
Someone had the same Problem with the Joomgallery
[the link removed because of security reason]
There he was told to add a "Specific Header" to his uploadscript.
Can you tell me where to add these line for Phoca Gallery?

Thanks for your help.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48913
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: JAVA Uploader not working error 401 Authorization Required

Post by Jan »

Hi, does the topic mean it seriously? :(

You want to protect your site with password but you will add this password to the script so everybody can see it. This doesn't make any sense? Then just remove the password protection from your site. It is better and cleaner solution than protect the site with password but to display this password for all the world :idea: :(
If you find Phoca extensions useful, please support the project
Flachzange
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 28 Aug 2009, 14:10

Re: JAVA Uploader not working error 401 Authorization Required

Post by Flachzange »

Sure.
This is not an official page. The whole bunch is only reachable if the users got the user and password for the htaccess.
Because of this the users who log on to my page already know the password.
Can you tell me where to put the code please?
Thank you very much.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48913
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: JAVA Uploader not working error 401 Authorization Required

Post by Jan »

Hi,
The whole bunch is only reachable if the users got the user and password for the htaccess
but you will display the password to all users, to everybody (so this doesn't make any sense to protect some site but display the password)

see:
components\com_phocagallery\views\category\tmpl\default_upload.php
components\com_phocagallery\views\user\tmpl\default_upload.php

Jan
If you find Phoca extensions useful, please support the project
osexcel
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 14 Apr 2011, 22:43

Re: JAVA Uploader not working error 401 Authorization Requir

Post by osexcel »

Hi Jan

This is Helix from OSE (Open Source Excellence). One of our customers is asking the same question, and here is my advice that might help:

************************************************************************************************

1. The Phoca's Java Uploader probably calls a javascript or CSS file, which locates in the backend, from the frontend, e.g.:

in www.yoursite.com/balabala

the component is calling a javascript in the backend:

http://www.yoursite.com/administrator/c ... la/xxxx.js

Since the administrator folder is protected by .htaccess, the solution is to move the javascript out to the frontend

www.yoursite.com/components/balabala/xxxx.js

Other solution is to use jSecure plugin to set the protection on the administrator folder instead of using .htaccess, which has similar effects.

************************************************************************************************

Hope this helps you all. ;)
Best wishes
Helix
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48913
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: JAVA Uploader not working error 401 Authorization Requir

Post by Jan »

Hi, I am little bit confused, as really no idea how the java applet can call the css or javascript in admin?
If you find Phoca extensions useful, please support the project
Post Reply