Announcement

#1 2015-04-27 11:46:58

sebbie
Member
2015-04-27
12

Piwigo 2.0 App - Error 401

Hi Everyone,

I seem to be having a problem with the newest version of Piwigo App. It seems that users are unable to upload photos to the Image Bank server. As they don't have Admin Right to do so, but in the plugin section we have the community plugin which enabled users to upload images. Its set up correctly as it worked on the previous version of the app.

I've attached two screenshots showing the errors which are appearing.

If someone could assist on this would be most grateful.

Kind Regards,
Seb

Piwigo version: 2.0 (10)

Last edited by sebbie (2015-04-27 11:48:54)

Offline

 

#2 2015-04-27 12:50:03

Olaf
Member
Italy
2015-03-28
15

Re: Piwigo 2.0 App - Error 401

Hey Seb,

I will look into this. Could you  please tell me which "community plugin" you are using?

Thanks

Olaf

Offline

 

#3 2015-04-27 12:52:26

sebbie
Member
2015-04-27
12

Re: Piwigo 2.0 App - Error 401

Hi Olaf,

Thank you for reply, we are using version 2.7a by plg.
(Attached screenshot)

Regards,
Seb

Offline

 

#4 2015-04-27 13:07:12

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo 2.0 App - Error 401

Olaf, Community plugin is faking the "admin" status for users with upload permissions. Depending on how the app checks the user status it may not say the user is an "admin" and the app may then say "no upload permission".

Offline

 

#5 2015-04-27 13:30:30

Olaf
Member
Italy
2015-03-28
15

Re: Piwigo 2.0 App - Error 401

Yes, this is what I am seeing here. Give me some time and I will see what I can come up with.

Offline

 

#6 2015-04-27 13:35:58

sebbie
Member
2015-04-27
12

Re: Piwigo 2.0 App - Error 401

Thank you for looking into this, do you have a timeline for when it will be fixed?

Offline

 

#7 2015-04-27 14:02:48

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo 2.0 App - Error 401

sebbie wrote:

Thank you for looking into this, do you have a timeline for when it will be fixed?

Even if Olaf can find a way to fix it, the submission of a new version of the iOS app takes time (several days) :-/

Offline

 

#8 2015-04-27 14:18:46

sebbie
Member
2015-04-27
12

Re: Piwigo 2.0 App - Error 401

Hi plg,

That fine.

If the issue can be fixed by next week this time it would be great, we really need this to be fixed as we have round 80+ users who use this app.

Is there a work-around in the mean time? Like another way to upload images?

Thanks,
Seb

Offline

 

#9 2015-04-27 14:22:18

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo 2.0 App - Error 401

sebbie wrote:

Is there a work-around in the mean time? Like another way to upload images?

with Community (non admin users) from iOS devices, I don't see any other way to upload images :-/

Offline

 

#10 2015-04-27 14:37:19

sebbie
Member
2015-04-27
12

Re: Piwigo 2.0 App - Error 401

This is what we have but are getting this error.

So I assume we need to wait to see if Olaf can find the problem, fix it and then upload the new update to the app store.

Olaf could you keep me posted on the progress for this fix?

Thanks,
Seb

Offline

 

#11 2015-04-27 15:09:57

Olaf
Member
Italy
2015-03-28
15

Re: Piwigo 2.0 App - Error 401

Hi all,

here is an update on what I am seeing so far: the app is sending a "method=pwg.session.getStatus" to the server. The server will respond with 'webmaster' if the user has admin right or with 'normal' when the user is a normal user.

For a 'normal' users there is nothing in the status message to tell to the app that the community plugin is installed. Therefore the app does not know that is should say the user is an 'admin'. The app will use the current logon and will try to upload an image. When the server does not accept the upload it sends the "401 not authorized". This message is displayed by the app.

plg wrote:

sebbie wrote:

Is there a work-around in the mean time? Like another way to upload images?

with Community (non admin users) from iOS devices, I don't see any other way to upload images :-/

I am open to your suggestions because I don't know much about the community plugin. As far as I can see it the permissions would need to be handled on the server side. A 'normal' user does not know an admin password, therefore the app cannot make the user into an admin user. The server would need to 'know' that the user in question has the correct permissions and should allow the upload.

Offline

 

#12 2015-04-27 15:21:53

sebbie
Member
2015-04-27
12

Re: Piwigo 2.0 App - Error 401

Hi Olaf,

I'm really sorry but I'm not fluent in technical talk :D

Is the problem something which I need to solve or something that "plg" needs to solve?

Thanks,
Seb

Offline

 

#13 2015-04-27 15:38:19

Olaf
Member
Italy
2015-03-28
15

Re: Piwigo 2.0 App - Error 401

Hi Seb,

sorry, my bad. They keep telling me to pay attention when switching from computer talk to human talk and I am really, really working on it. Honestly! ;)

Lets try again: Nope, nothing for you as a user to do. It is between server, community plugin and app.

Best regards

Olaf

Offline

 

#14 2015-04-27 16:13:15

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo 2.0 App - Error 401

Thank you Olaf for your code investigation in iOS app.

The problem is on Community side. I'm fixing it (I can already upload photos, I need to set pending photos appropriately). The only problem will be that albums won't be "browseable" from the iOS app if you are a "Community" user.

Offline

 

#15 2015-04-27 16:19:50

sebbie
Member
2015-04-27
12

Re: Piwigo 2.0 App - Error 401

Hi Plg,

By won't be "browsable" do you mean in the album section the user won't be able to see photos? If that is the case its not a problem as long as they can upload photos to that folder and the admin can see them.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact