sebbie
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)
Olaf
Hey Seb,
I will look into this. Could you please tell me which "community plugin" you are using?
Thanks
Olaf
sebbie
Hi Olaf,
Thank you for reply, we are using version 2.7a by plg.
(Attached screenshot)
Regards,
Seb
plg
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".
Olaf
Yes, this is what I am seeing here. Give me some time and I will see what I can come up with.
sebbie
Thank you for looking into this, do you have a timeline for when it will be fixed?
plg
sebbie wroteThank 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) :-/
sebbie
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
plg
sebbie wroteIs 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 :-/
sebbie
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
Olaf
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 wrotesebbie wroteIs 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.
sebbie
Hi Olaf,
I'm really sorry but I'm not fluent in technical talk 😃
Is the problem something which I need to solve or something that "plg" needs to solve?
Thanks,
Seb
Olaf
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
plg
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.
sebbie
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.
plg
sebbie, give a new try. I made some changes on Community.
sebbie
Hi Plg,
I've just tested it and it seems to be working fine 🙂
I will let the people who are having issue know and make them test it to be 100% sure its working.
Will keep you posted.
Many thanks,
Seb
sebbie
Hi Plg,
The users which had errors this morning can upload now, but in the (Upload) tab they still have the message of "Admin Rights Needed" but they can upload with no error 401 anymore.
Is there a way to solve this problem?
I've attached a screenshot
Regards,
Seb
Olaf
Hi Seb,
that screen will show when the user is not an admin. This is caused by the app not knowing about the Community plugin.
Best regards
Olaf
sebbie
Ahh I see, so theres no way to solve this?
Its not a big issue, but was wondering if its something which can be fixed?