I used both the iPhoto plugin and Gallery Remote and haven't been able to upload any images. I can log in and create a gallery, but when it attempts to actually upload an image, it fails and I get this error in the logs.

Request failure: 401, The user does not have permission to add an item to the gallery.

This error occurs as the first photo in the set finishes uploading. All permissions appear to be set correctly and I am able to create image nodes on the website.

CommentFileSizeAuthor
#5 image_pub-594806.patch662 bytesegfrith

Comments

binford2k’s picture

This seems similar to #204209: User authentification does not work under Gallery Remote, but not the same. If I allow both create image and upload files to the anonymous user, I still cannot upload files via the iPhoto plugin or Gallery Remote.

egfrith’s picture

Title: Image upload fails » GR: Image upload fails

Thanks for your report, and sorry for not looking at it sooner. I still haven't had time to look at this properly, save to say that things seem to work for me.

Are you still having problems with this?

binford2k’s picture

I can check tonight. I put that project on hold, pending a working gallery module.

egfrith’s picture

Yes, it would be great if you could do that, including letting me know what version image_gallery you're using.

egfrith’s picture

Status: Active » Fixed
StatusFileSize
new662 bytes

The bug was due to image_pub refering to an out-of-date permission in image_gallery. The attached patch (now committed to the development version) fixes this bug.

The 6.x-1.x version of image_pub now works with the 6.x-1.x version of the image module.

Anonymous’s picture

Hi,
I'm having this problem too, when i try to upload with f-spot (compiled version 0.4.4 and 0.5.0.3) or digikam
when entering the web gallery informations in f-spot, i can see

user	06/22/2010 - 23:28	Session opened for imgupload.
image_pub	06/22/2010 - 23:28	Session opened for <em>imgupload</em>

the next i can't select the gallery, or upload, i get

image_pub	06/22/2010 - 23:29	Request failure: 401, The user does not ...	Anonymous	

i tried to search for problems with cookies and tried to apply some patches from the issues in image_pub but without success
still i can upload with f-spot when i give the rights to anonymous ( btw i get "Division by zero in /image_fupload/image_fupload_image/image_fupload_image.module on line 237" if image_fupload is enabled, i don't know if its linked)
Thanks

egfrith’s picture

Hello kerute,

just to be sure we are on the same page, are you using the latest version of image_pub (6.x-1.0beta3), the 6.x-1.x version of the image module and the latest version of drupal? If so, we should change the version on this issue and reopen it.

When you look at the watchdog logs in drupal, what do you see?

This reminds me of #204209: User authentification does not work under Gallery Remote - but this is probably a red herring.

Anonymous’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Status: Fixed » Active

Hi,
sorry it's the first issue im posting
yes it looks like #204209: User authentification does not work under Gallery Remote I tried to follow the patches but without success
i tried with the cvs version and the tgz availables in the download section of the module.
I think all my modules are up to date as is my drupal
Image module is 6.x-1.0-beta5 should i try the -dev ?
As im not used to drupal's code, i tried to uncomment some //watchdog lines here are the details of what i get (approximately as i just flushed my db

processing command
http://mydomain/gallery_remote2.php
# or depending of the version i tried
http://mydomain/main.php

it does not tell me what was the command or the parameters, if there is a way to get them i'd be happy to do it.
Thanks

egfrith’s picture

I've not made any progress on this, but uncommenting the following line in image_pub.gr.inc might help:
// watchdog('image_pub', 'GR request: %cmd', array('%cmd' => var_export($g2_form, true)));

When uncommented, the request from the GR client appears in the drupal logs.

bwynants’s picture

Assigned: Unassigned » bwynants
Status: Active » Closed (duplicate)