Gallery2: Gallery Remote -> Able to login as Admin but FetchAlbums as Guest.

reynan

Joined: 2003-09-10
Posts: 49
Posted: Tue, 2007-03-27 21:47

hello.

I'd just activate the plugin "remote" in my Gallery. And still I was not able create and add album/photo using "Gallery Remote Client". When fetching the albums, it says (read-only).

I check the logs of the remote client. I was able to login as admin user, but when fetching albums, the active user becomes "guest user". Thats why i was able to fetch as read-only permission. How come is that? Am I locking something?

need help for this function.

regards,

--reynan

Gallery version (not just "2"): 2.2.1
PHP version (e.g. 4.3.11): 4.3.9
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): Apache 2.0.52
Database (e.g. MySql 4.0.11): 4.1.2
Activated toolkits (e.g. NetPbm, GD): Imagemagik, NetPbm, GD
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 1.0): Firefox 1.07

here is the snippet of the logs:

7755126|INFO |MainFrame |Command selected Fetch
7755126|TRACE|GalComm |Setting proxy to 10.1.10.1:8888
7755126|TRACE|GalComm |Trying protocol 2 for http://whitebox.iblog.ph/gallery/
7755129|TRACE|GalComm |tryComm /gallery/gallery_remote2.php: 403
7755129|TRACE|GalComm |Trying protocol 2.5 for http://whitebox.iblog.ph/gallery/
7755400|TRACE|GalComm |tryComm /gallery/main.php?g2_controller=remote:GalleryRemote&g2_form[cmd]=no-op: 200
7755400|TRACE|GalComm |Server has protocol 2.5
7755400|INFO |MainFrame |fetchAlbums starting
7755401|INFO |GalComm2 |Logging in to whitebox
7755401|TRACE|StatusBar |level: 0 - Logging in to whitebox - 0
7755401|TRACE|GalComm2 |login parameters: [HTTPClient.NVPair[name=cmd,value=login], HTTPClient.NVPair[name=protocol_version,value=2.3], HTTPClient.NVPair[name=uname,value=whitebox], null]
7755401|TRACE|GalComm2_5|Overriding form data: [HTTPClient.NVPair[name=g2_form[cmd],value=login], HTTPClient.NVPair[name=g2_form[protocol_version],value=2.3], HTTPClient.NVPair[name=g2_form[uname],value=whitebox], HTTPClient.NVPair[name=g2_form[password],value=qwerty], HTTPClient.NVPair[name=g2_controller,value=remote:GalleryRemote], HTTPClient.NVPair[name=start_debug,value=1], HTTPClient.NVPair[name=debug_port,value=10000], HTTPClient.NVPair[name=debug_host,value=172.16.1.35,127.0.0.1], HTTPClient.NVPair[name=send_sess_end,value=1], HTTPClient.NVPair[name=debug_url,value=1]]
7755401|TRACE|GalComm2 |Connecting to: /gallery/main.php
7755422|TRACE|StatusBar |level: 0 - Select a Gallery URL and click Log in... - 0
7755891|TRACE|GalComm |Accepting cookie: GALLERYSID=f072f466ae2dbc80ed8a04c020ef4c77; expires=Wed Apr 18 04:46:57 PHT 2007; path=/gallery/main.php/; domain=.whitebox.iblog.ph
7755891|TRACE|GalComm2 |#__GR2PROTO__
server_version=2.11
debug_core_version=7,17
debug_module_version=1.0.8
status=0
status_text=Login successful.
debug_user=whitebox
debug_time=0.228s
7755892|INFO |GalComm2 |Logged in
7755892|TRACE|StatusBar |level: 0 - Logged in - 0
7755892|TRACE|GalComm2 |Server minor version: 11
7755892|TRACE|StatusBar |level: 1 - Fetching albums from whitebox - 0
7755892|TRACE|GalComm2 |fetchAlbums parameters: [HTTPClient.NVPair[name=cmd,value=fetch-albums-prune], HTTPClient.NVPair[name=protocol_version,value=2.3]]
7755892|TRACE|GalComm2_5|Overriding form data: [HTTPClient.NVPair[name=g2_form[cmd],value=fetch-albums-prune], HTTPClient.NVPair[name=g2_form[protocol_version],value=2.3], HTTPClient.NVPair[name=g2_controller,value=remote:GalleryRemote], HTTPClient.NVPair[name=start_debug,value=1], HTTPClient.NVPair[name=debug_port,value=10000], HTTPClient.NVPair[name=debug_host,value=172.16.1.35,127.0.0.1], HTTPClient.NVPair[name=send_sess_end,value=1], HTTPClient.NVPair[name=debug_url,value=1]]
7755892|TRACE|GalComm2 |Connecting to: /gallery/main.php
7756196|TRACE|GalComm2 |#__GR2PROTO__
debug_time_albumids=0.085s
debug_time_entities=0.09s
debug_time_permissions=0.095s
album.name.1=15
album.title.1=My First Photo Album
album.summary.1=Image Album
album.parent.1=12
album.perms.add.1=false
album.perms.write.1=false
album.perms.del_alb.1=false
album.perms.create_sub.1=false
album.info.extrafields.1=Summary,Description
album.name.2=12
album.title.2=Photos
album.summary.2=Image Album
album.parent.2=7
album.perms.add.2=false
album.perms.write.2=false
album.perms.del_alb.2=false
album.perms.create_sub.2=false
album.info.extrafields.2=Summary,Description
album.name.3=7
album.title.3=Gallery
album.summary.3=
album.parent.3=0
album.perms.add.3=false
album.perms.write.3=false
album.perms.del_alb.3=false
album.perms.create_sub.3=false
album.info.extrafields.3=Summary,Description
debug_time_generate=0.096s
can_create_root=true
album_count=3
status=0
status_text=Fetch-albums successful.
debug_user=guest
debug_time=0.097s
7756197|TRACE|GalComm2 |Created 3 albums
7756197|TRACE|GalComm2 |Linked 2 albums to their parents
7756197|TRACE|GalComm2 |Ordered 3 albums
7756197|INFO |GalComm2 |Fetched albums
7756197|TRACE|StatusBar |level: 1 - Fetched albums - 0
7756197|INFO |GalComm2 |execution time for AlbumList: 305
7756197|TRACE|StatusBar |level: 0 - Fetch complete - 0
7756210|TRACE|StatusBar |level: 0 - Select a Gallery URL and click Log in... - 0

 
yesimahuman

Joined: 2008-04-29
Posts: 9
Posted: Thu, 2008-05-01 07:18

Bump, having the same problem...