6.0.0-beta1
7/8/25

[#13579] SlugName
Summary SlugName
Queue Ansel
Queue Version 3.0.1
Type Bug
State Not A Bug
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester bonnaud (at) hotmail (dot) com
Created 09/18/2014 (3946 days ago)
Due
Updated 09/18/2014 (3946 days ago)
Assigned 09/18/2014 (3946 days ago)
Resolved 09/18/2014 (3946 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/18/2014 03:13:37 PM Michael Rubinsky Comment #7
Assigned to Michael Rubinsky
State ⇒ Not A Bug
Reply to this comment
Original report for this ticket is dealt with, closing as not a bug.
09/18/2014 03:12:52 PM Michael Rubinsky Comment #6 Reply to this comment
When I saw this, I got it. There is two sets of permissions for 
download, one in the property of the gallery and one in the 
preferences of the users. The preference of the users supersede the 
property of the gallery.
This sounds like a bug. I think the per-gallery should supersede the 
user pref. The user-pref should really only be used to provide a 
default for this value. Can you please create a new bug report for 
this piece?
Still on the Slug subject, while viewing a picture as a guest, I get 
after a while a session expired !? What session, I'm a guest not 
logged in ?! The Horde session settings are all defaults and the 
only timer for expiration is a 72000 sec, which is a lot longer than 
what I'm seeing here for guest expiration.
Not sure. Either way, this would be a non-ansel issue, so please 
create a separate ticket in the base horde queue.

Thanks.

09/18/2014 03:02:55 PM bonnaud (at) hotmail (dot) com Comment #5 Reply to this comment

[Show Quoted Text - 14 lines]
Thanks for narrowing it down so tightly ! Very easy to track it, I got 
it to echo each case in the switch and the case 'all' got the hands up !

When I saw this, I got it. There is two sets of permissions for 
download, one in the property of the gallery and one in the 
preferences of the users. The preference of the users supersede the 
property of the gallery. Later this week I'll try to put a "if" to 
grey out the property setting if the user preference is at "anyone" 
since this gallery setting become useless in this case since it's 
superseded and while greying it out i'll try to put a explication why 
it's greyed out on it's side.

Still on the Slug subject, while viewing a picture as a guest, I get 
after a while a session expired !? What session, I'm a guest not 
logged in ?! The Horde session settings are all defaults and the only 
timer for expiration is a 72000 sec, which is a lot longer than what 
I'm seeing here for guest expiration.
09/18/2014 01:34:23 PM Michael Rubinsky Comment #4 Reply to this comment
Continuing on the slugs, I've setup general permission in Horde for 
guest to show and read ( only way possible I found for a guest to 
see the gallery was to add this general permission in Horde, is that 
right ? )
You need to add it to the 'Ansel' application, yes.
While viewing the gallery thru the slug as a guest, I get the link 
on top of the picture to download the original picture. ( btw you 
can try with the link it's working now )
I cannot reproduce this, though I see it on your link. You will have 
to track this down yourself. Look in Ansel_Gallery:canDownload() to 
see which case is returning true.
09/18/2014 12:32:23 PM bonnaud (at) hotmail (dot) com Comment #3 Reply to this comment
Sounds like you didn't turn on "pretty" urls in the Horde config.
You were right. I had to turn on rewrite module as well. Didn't though 
about that one.

Continuing on the slugs, I've setup general permission in Horde for 
guest to show and read ( only way possible I found for a guest to see 
the gallery was to add this general permission in Horde, is that right 
? ), I've also set-up preference in Ansel as only authenticated user 
could download original picture. In the Gallery preference are only at 
show and read for guest.

While viewing the gallery thru the slug as a guest, I get the link on 
top of the picture to download the original picture. ( btw you can try 
with the link it's working now )

I've also tried that with the setting at "Users with edit permission" 
and the download link is still available

09/18/2014 03:44:25 AM Michael Rubinsky Comment #2
State ⇒ Feedback
Reply to this comment
Sounds like you didn't turn on "pretty" urls in the Horde config.
09/18/2014 01:43:07 AM bonnaud (at) hotmail (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ SlugName
Queue ⇒ Ansel
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Ansel is configured to work with a files on the local system and with 
VFS direct source that seems to be working correctly in horde. I can 
also access file directly by typing the url of it.

I configured a slug named "test" and when I access

http://mail.spagi.net/ansel/gallery/test ( with or without the 
trailing / I tried both ) I get a 404 not found.

Apache log confirm the 404

192.168.0.1 - - [17/Sep/2014:21:36:52 -0400] "GET 
/ansel/gallery/walkingtherockies/ HTTP/1.1" 404 525 "-" "Mozilla/5.0 
(Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0"

Horde is installed in /horde/ on Ubuntu and apache 2.4 configuration 
is straight forward as follow :

<VirtualHost *:80>
         ServerAdmin /*SNIP*/
         DocumentRoot /horde/
         <Directory /horde>
             Require all granted
         </Directory>
         ErrorLog ${APACHE_LOG_DIR}/error.log
         CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Something I'm missing or slug really don't work ?

Saved Queries