Author Topic: redirect  (Read 4102 times)

0 Members and 1 Guest are viewing this topic.

Guest

  • Guest
redirect
« on: November 23, 2007, 06:32:39 PM »
+ Options -> Accounts -> "After login, redirect to" does not work here.

In the root I have real folders /Server/Work/
I created account "user", password "user" and redirect to
/Server/Work/.
I set permissions for user to Server and Work folders.
On login user is in "Server" with "Work" visable.
Shouldn't user be in Work?
I find that without "List Protected items only for allowed users"
checked, user is logged in Server with all folders in Server folder visable.
I find that no matter the configuration, "user" arrives in "Server"
at log in, not "Work".
ini for user shows login:dXNlcjp1c2Vy|enabled:yes|no-limits:no|redir:/Server/Work/;
Log shows:
11/23/07 12:12:04 PM user@192.168.1.xx:xxxx{M1} Requested GET /Server/

What am I missing here ?

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: redirect
« Reply #1 on: November 24, 2007, 01:21:08 PM »
all the info you provided is enough to say: impossible :D
i truly don't know what's happening there, I even tested and checked the code handling this feature.
all i can say is
1. try with the latest beta available
2. give me (privately) your vfs and ini, i will try to reproduce the problem here

i hope in the while you worked it out

Guest

  • Guest
Re: redirect
« Reply #2 on: November 24, 2007, 10:08:40 PM »
1. Using 145
2. Sent vfs & ini

Thanks

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: redirect
« Reply #3 on: November 26, 2007, 12:06:10 AM »
I got your files, and used them triny to reproduce your problem, but
26/11/2007 1.02.33 user@127.0.0.1:59378 Requested GET /~login
26/11/2007 1.02.33 user@127.0.0.1:59379 Requested GET /Server/Work/

it works flawlessly here :-\
truly, no idea
let me know if you find something more

Guest

  • Guest
Re: redirect
« Reply #4 on: November 26, 2007, 06:16:30 AM »
Thanks for checking this.
I suspect my system, but I'm clueless as to what.
I will try running this same configuration on my Vista computer.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: redirect
« Reply #5 on: November 26, 2007, 11:14:28 AM »
yes, trying on another PC is a good idea.

Guest

  • Guest
Re: redirect
« Reply #6 on: November 27, 2007, 06:37:05 PM »
I have made redirect work (sort of)

I had a index page as default file mask for / with
a <a href="/Server/"> link.
Root un protected, bound to real folder containg index page,
Server folder protected.
When "user" clicked the link, they got the log in window.
The redirect did not work.
%login-link% and %loggedin% were not in my template.

Now, without index page, root not bound, "List protected only for
allowed users" unchecked (off).
Now visitor's first view is "Server" folder (protected). If user
clicks on it, and logs in, redirect does not work. He is inside "Server"
folder and sees all folders.
If user clicked first on "Login" button that I have now added, he arrives
inside "Work" folder, and redirect has worked.
Redirect is /Server/Work. On Win 98se. Tested with IE 6 (yeah I know IE6 is
pretty bad) and Opera. HFS is 145.
Tried using <a href="~login">" on index. Works for accounts with redirect
but not for those with out. Would require all accounts to have redirect ?
Aparrently redirect doesn't work here, if login is called from a protected resource,
only if called from ~login.
I expected redirect to work regardless of the configuration?
Is this expected behavior ?

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: redirect
« Reply #7 on: November 28, 2007, 07:44:48 PM »
Aparrently redirect doesn't work here, if login is called from a protected resource, only if called from ~login.

THAT is the problem.
Yes, it is meant to work only for ~login.
At the moment there's no other way for HFS to know the user is logging in NOW. In a far future this will be solved, but that's it for now.

Ok, so finally we got this is not a bug. It is a feature with known limitations.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: redirect
« Reply #8 on: November 28, 2007, 07:53:51 PM »
since we have several limits on HFS (several due to the http authentication) i created a wiki page where to list them.
http://www.rejetto.com/wiki/index.php?title=HFS:_Known_limits