rejetto forum

3 Bugs

r][m · 7 · 6597

0 Members and 1 Guest are viewing this topic.

Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
Bug # 1
  Descript.ion is broken in build 221, works in 220. Tested with default tpl.

Bug # 2
 Clicking on a restricted folder, and getting the log in window
 DOES NOT grant the same logged in priviliges/functions as using ~login.

  That's why I've been having so much trouble making macros and other code work.
  I use the first method, because I have a 4 page public web site in front of my server. Log in
  is by clicking a link to a folder that brings up the log in box.
  Maybe this was known, but I sure don't remember finding it on the forum, and I haven't missed reading
  much here in a couple of years.

Bug # 3
  Using ~login with the default template delivers "Page not found" from browser. On clicking
  back, you find you are in fact, logged in.
  #3 appears somewhat randomly, depending on the login method, I think.

Tested on build 221 with Firefox, Opera and IE on default tpl. Results consistent.
A fix might be an option to make ~login=/a directory of your choice/ instead of root.

« Last Edit: February 07, 2009, 08:57:10 AM by r][m »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
1. already fixed for next build

2. please, describe in details
- what you do
- what you expected
- what's different in what you actually got

3. i just clicked the login and had no problems.
anyone can confirm this problem?
it's strange because i remember a previous similar problem, with IE6 and XP pre-SP2, that i workarounded.

Quote
A fix might be an option to make ~login=/a directory of your choice/ instead of root.

i didn't understand this


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2063
    • View Profile
Quote
Quote
A fix might be an option to make ~login=/a directory of your choice/ instead of root.


i didn't understand this

I believe that he thinks of an option of the type ' redirect to ' to add after '~LOGIN='   by default


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
Descript.ion is still broken in 222, works in 220. :(
Quote
2. please, describe in details
- what you do
- what you expected
- what's different in what you actually got
I have one protected folder that contains all subfolders. All users have
access through this gateway. List Protected ony for allowed is checked.
Root is not protected.
Using the default tpl your first view is of this folder.
If you use ~login button every thing works as expected.
If you use index.html as default file mask for the root, clicking a link to
to the gateway folder brings up the login window. On logging in you are inside
this folder, and see all files you have access to, but HFS does not recognize
you are logged in for all macros. Testing the admin panel, or Luca69's code
to change user pass you get a "You must be logged In" error. (not hfs error)
If you use ~login without index.html page, everything works.
Aparrently the two login methods are not equal, but I expected they would be.
Edit:
Quote
2/8/09 10:23:25 AM 192.168.1.35:1310{M1 LAN} Not served: 401 - Unauthorized
I notice this log entry on login by using link instead of ~login button, but believed
it was expected behavior. [unauthorized] section/page doesn't appear though.
Up till now everything had worked after login.
« Last Edit: February 08, 2009, 04:42:34 PM by r][m »


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
Quote
A fix might be an option to make ~login=/a directory of your choice/ instead of root.
i didn't understand this
Use of ~login always is to root, I think. An option to select
/directiory of your choice/ instead. Tried using redirect to gateway folder in User Options
with ~login as a workaround but it asks to login twice  ???


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
Descript.ion is still broken in 222, works in 220. :(

i tested it, and it is working to me, both on displaying comments and on deleting when i remove a file.
please use the method above
- what you do
- what you expected
- what's different in what you actually got

Quote
On logging in you are inside this folder, and see all files you have access to, but HFS does not recognize you are logged in for all macros. Testing the admin panel, or Luca69's code
to change user pass you get a "You must be logged In" error. (not hfs error) If you use ~login without index.html page, everything works.

this may depend on how the panel was done.
can you tell me how to get the same template+panel you have? do i will try to reproduce the problem.

Quote
Aparrently the two login methods are not equal, but I expected they would be.

there are some known differences, like that URL ~login redirects you to the folder after you submitted password, while accessing the folder this is not necessary.

Quote
2/8/09 10:23:25 AM 192.168.1.35:1310{M1 LAN} Not served: 401 - Unauthorized
I notice this log entry on login by using link instead of ~login button, but believed
it was expected behavior. [unauthorized] section/page doesn't appear though.

this may be normal.
when you get a page, you often make 1 main request and other additional requests.
only if the 401 is given for the main one you'll see the error page.


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
Quote
i tested it, and it is working to me, both on displaying comments and on deleting when i remove a file.
I see nothing else to test. My Descript.ion files in my music folders have not changed.
You see the comments they add in 220.
221 & 222 do not show them, so I can't tell about the delete feature.

The ~login bug is likely caused by the {.if | %user% |  macro at the beginning.
I used code for change pass word posted here
http://www.rejetto.com/forum/index.php?topic=6587.msg1040505#msg1040505
And admin panel was http://www.rejetto.com/forum/index.php?topic=6590.msg1040260#msg1040260
or http://www.rejetto.com/forum/index.php?topic=6498.45
HFS returns results for the {.if | %user% | macro that there is no user
if you login by link to protected folder.
I restructured the admin panel to a simple form to work around this, but haven't been able to
do that with other things posted that I'd like to use.