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
Hey Seb,
I will look into this. Could you please tell me which "community plugin" you are using?
Thanks
Olaf
Offline
Hi Olaf,
Thank you for reply, we are using version 2.7a by plg.
(Attached screenshot)
Regards,
Seb
Offline
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
Yes, this is what I am seeing here. Give me some time and I will see what I can come up with.
Offline
Thank you for looking into this, do you have a timeline for when it will be fixed?
Offline
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
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
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
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
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
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
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
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
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