rejetto forum

Use comment as realm not working

Martok · 11 · 4960

0 Members and 1 Guest are viewing this topic.

Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
While I was testing around for the Wiki-page about what realms are, I noticed the following:

I have a folder in the VFS. This folder has a comment "test-folder for Realms". It has no realm.
Even although "Use comment as realm" is checked, I am prompted to enter password for "password protected ressource".
When I manually entr the Realm, it works.

Is there another option that has to be set, too?
Cheers,

Martok


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
i created a virtual folder, with a comment and the option "use.." on.
it worked. was your test different? maybe real folder? external comment?


Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
Quote from: "rejetto"
it worked. was your test different? maybe real folder? external comment?
It was a real folder. Now I rechecked everything and it works too. Maybe something screwed up, I rebooted my PC in the meantime.

OK, so declare this as 'solved' (or 'to be ignored'...)
Cheers,

Martok


Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
Quote from: "Martok"
OK, so declare this as 'solved' (or 'to be ignored'...)

And now, I quote myself and revert my opinion. It is a bug. The comment is used as a realm if there is no default file (index.html for me) in the folder. If it exists, I see the "Password protected ressource" stuff. After renaming it to index1.html, HFS wants to make it's own directory listing and gives the text.

I think this behaviour is clear as the passwort request is for the standard file, not the folder.
So I browse /test/ , HFS sees an index.html and processes a GET /test/index.html and so has no comment/realm.
But I think it should get the comment/realm from the folder I was asking for.

Did you understand what i meant? I might me a bit confusing :#)

EDIT: fixed typo
Cheers,

Martok


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
yes, the realm is applied recursively, but the comment-as-realm is not.

that is: if the item has no realm, the realm is searched in the parent, and in the parent of the parent until it is found.
the same work is not made when the comment is used as realm. only the comment of the item is used, if it is empty, no way, it stops there and don't search anywhere else.

this is a possible problem. it may be not what the user expect to get. but maybe it is.
please, express yourself, i like to know anyone's opinion.
(this is part of my thesis  B) )


Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
I think for the realms-from-comments it would be good to have them recoursively in real folders, so every item in a real folder gets the comment-realm from the parent node, but not in virtual ones, if this is possible.

And (nearly off topic), talking about recoursiveness: is there a way to have the root passworded and a subfolder accessable without parent? So / has a password, but /test/ not? At present, passwords are inherited, can there be an option 'No password' or so?
Cheers,

Martok


thecow5z

  • Guest
Having read all the posts above I am not sure if my question was answered.

I have only virtual folders and I can right click on them and place a Custom Realm for each folder which anyone can see when they click on that folder (this works great), however when I click on Menu > Other Options > Login Realm, I can place a message there too but I never get to see this message when I attempt to log into a folder which I have not place a Custom Realm on even when I place a check mark on Use Comments as Realm.
I am using HSF v2.0

I hope someone understood me, if not let me know.
thanks for any help


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
Quote from: "Martok"
I think for the realms-from-comments it would be good to have them recoursively in real folders, so every item in a real folder gets the comment-realm from the parent node, but not in virtual ones, if this is possible.
i get this may be what you need.
but why should the user expect such behaviour?
i mean... the software should be clear when possible. this would be an obscure behaviour. only people reading the documentation would know that.

Quote
And (nearly off topic), talking about recoursiveness: is there a way to have the root passworded and a subfolder accessable without parent? So / has a password, but /test/ not? At present, passwords are inherited, can there be an option 'No password' or so?
sure, it is also very easy. we can add option for anything.
but... should we? to reply to this question we have to answer to this:
is there an alternative solution? and is this alternative a worst solution?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
Quote from: "thecow5z"
when I click on Menu > Other Options > Login Realm, I can place a message there too but I never get to see this message when I attempt to log into a folder which I have not place a Custom Realm on
login realm is the realm for when you click on the login button.
to get what you are asking for, just set a custom realm for the root element (home).


Offline Martok

  • Occasional poster
  • *
    • Posts: 88
    • View Profile
Quote from: "rejetto"
sure, it is also very easy. we can add option for anything.
but... should we? to reply to this question we have to answer to this:
is there an alternative solution? and is this alternative a worst solution?

Sure, but the main thing I mean is the restrict to user setting. There are Items 'ALL', which selects all(clear) and there is 'NONE', which selects none but still has users set(those ones of the parent folder)(not clear[in my eyes])
What are other's opinions about this?
Cheers,

Martok


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
i get your point.
i think this is a more general problem, i will discuss it in a new thread.