Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 109 of 807  Not logged in ELOG logo
ID Date Icon Author Author Email Category OS ELOG Version Subjectdown
  1255   Mon Jul 11 12:40:13 2005 Idea Stefan Rittstefan.ritt@psi.chRequestAll Re: userlist multiple select

Emiliano Gabrielli wrote:
Here I am again Smile

My goal is to put a "Co-Authors" Attribute in my logbook, giving the possibility to other people in the control room to have credits about an entry... I added a "Co-Author" attribute, but It shold permit a "multliple" selection (a checkbox is not good) ... the perfect solution would be to add the attribute "multiple" to the <select> tag, and filling the elog Attribute value with a comma separated list of the selections ...

tnx in advance Smile


Have you tried
MOptions ...
which gives you check boxes where more than one can be selected?

I presume you have, but you really would prefer a multi-selection box instead of multiple check boxes Wink . Well, let's make a deal: if you explain everybody how to do a selection in a multi-select box (with all the Shift-Click, CTRL-Click, and this under different operating systems), I will implement it Big grin
  1258   Mon Jul 11 14:35:00 2005 Idea Emiliano GabrielliAlberT@SuperAlberT.itRequestAll Re: userlist multiple select

Stefan Ritt wrote:

Emiliano Gabrielli wrote:
Here I am again Smile

My goal is to put a "Co-Authors" Attribute in my logbook, giving the possibility to other people in the control room to have credits about an entry... I added a "Co-Author" attribute, but It shold permit a "multliple" selection (a checkbox is not good) ... the perfect solution would be to add the attribute "multiple" to the <select> tag, and filling the elog Attribute value with a comma separated list of the selections ...

tnx in advance Smile


Have you tried
MOptions ...
which gives you check boxes where more than one can be selected?

I presume you have, but you really would prefer a multi-selection box instead of multiple check boxes Wink . Well, let's make a deal: if you explain everybody how to do a selection in a multi-select box (with all the Shift-Click, CTRL-Click, and this under different operating systems), I will implement it Big grin


a multiple selection box it's a standard web tool .. if one is not able to use its browser is not an elog problem IMHO Tongue

My request is becouse having a number of user (say 20) makes the checkbox solution very very nasty .. again, it's a choice you give to the smart user .. others simply will not notice any change in elog Wink
  1261   Tue Jul 12 15:19:07 2005 Reply Stefan Rittstefan.ritt@psi.chRequestAll Re: userlist multiple select

Emiliano Gabrielli wrote:
a multiple selection box it's a standard web tool .. if one is not able to use its browser is not an elog problem IMHO


Really? Can you point me to a common web site using this? I would really like to see how other people use this.


Emiliano Gabrielli wrote:
My request is becouse having a number of user (say 20) makes the checkbox solution very very nasty .. again, it's a choice you give to the smart user .. others simply will not notice any change in elog Wink


Ok, I put it on my wishlist. If more than one person asks for this, I will implement it. Unfortunately it's not only putting a multiple into the HTML page, it's also a different way how multiple selections are passed in the POST form and their decoding, so it will be an hour or two of work for me.
  1263   Wed Jul 13 10:12:38 2005 Reply Emiliano GabrielliAlberT@SuperAlberT.itRequestAll Re: userlist multiple select

Stefan Ritt wrote:

Emiliano Gabrielli wrote:
a multiple selection box it's a standard web tool .. if one is not able to use its browser is not an elog problem IMHO


Really? Can you point me to a common web site using this? I would really like to see how other people use this.


I can't remember just now a web site using it .. what I mean is that "multiple" attribute for the "select" tag is a standard for the web (it's not an IE extension or so on ..) so every web browser implements it.

It's normally used, for example, when you fill a form describing your attitudes, here you can often choose from a select box a number of interest you are concerded.. but it is only an example

Stefan Ritt wrote:


Emiliano Gabrielli wrote:
My request is becouse having a number of user (say 20) makes the checkbox solution very very nasty .. again, it's a choice you give to the smart user .. others simply will not notice any change in elog Wink


Ok, I put it on my wishlist. If more than one person asks for this, I will implement it. Unfortunately it's not only putting a multiple into the HTML page, it's also a different way how multiple selections are passed in the POST form and their decoding, so it will be an hour or two of work for me.

Yes I know, uhm... if you point me to the right piece of code to be adjusted I can see if I'll be able to do the job Smile
  69725   Wed Jan 24 14:50:21 2024 Reply Frank Heyrothheyroth (at) cmat.uni-halle.deBug reportLinux3.1.5-1Re: user change under webserver authentication not recognized

I found the reason of the bug:
In line 27441 of elogd.cxx the http_user is overwritten by the user saved in the sid_ array as a sideeffect of the sid_check function:
sid_check(getparam("sid"), http_user)

It can solved by changing elogd.cxx @ line 27441

27441c27441,27446
<          if (!sid_check(getparam("sid"), http_user)) { /*  if we don't have a sid yet, set it */
---
>          i=sid_check(getparam("sid"), thumb_name);
>          if (i && strcmp(http_user,thumb_name)!=0) {  /* user changed */
>             sid_remove(getparam("sid"));
>             i=FALSE;
>          }
>          if (!i) { /*  if we don't have a sid yet, set it */

Remark: I have used the variables i & thumb_name of the function in a local context.

  69742   Fri Feb 23 15:13:46 2024 Reply Stefan RittThstefan.ritt@psi.chBug reportLinux3.1.5-1Re: user change under webserver authentication not recognized

Thanks for the fix, I committed it. Please give it a quicky try sinc I cannot test it here (don't use webserver authentication...)

Stefan

Frank Heyroth wrote:

I found the reason of the bug:
In line 27441 of elogd.cxx the http_user is overwritten by the user saved in the sid_ array as a sideeffect of the sid_check function:
sid_check(getparam("sid"), http_user)

It can solved by changing elogd.cxx @ line 27441

27441c27441,27446
<          if (!sid_check(getparam("sid"), http_user)) { /*  if we don't have a sid yet, set it */
---
>          i=sid_check(getparam("sid"), thumb_name);
>          if (i && strcmp(http_user,thumb_name)!=0) {  /* user changed */
>             sid_remove(getparam("sid"));
>             i=FALSE;
>          }
>          if (!i) { /*  if we don't have a sid yet, set it */

Remark: I have used the variables i & thumb_name of the function in a local context.

 

  162   Wed Nov 20 20:07:58 2002 Reply Stefan Rittstefan.ritt@psi.ch   Re: upgrading
> this is happened before, and it just happened upgrading from 2.2.2 to 2.2.3
> 
> the link at the bottom of the page shows a previously installed version.
> 
> i don't install to the elog directory, i install to a ram disk and copy 
over the new executables, the source, readme and help html.
> 
> the link showed 2.1.2 until i upgraded to 2.2.2 (i didn't do anything 
different than the above. now i'm at 2.2.3 and the link is showing 
2.2.2...not that it's a big deal, i'm just wondering what i did wrong

Of course you have to stop the old elogd program and start the new one. Have 
you done that?
  163   Thu Nov 21 18:22:58 2002 Reply tony summerfeltsnowzone25@yahoo.com   Re: upgrading
> Of course you have to stop the old elogd program and start the new one. Have 
> you done that?

on windows i run it as a service through firedaemon, but i stop it before upgrading...that was one of the first things i checked...
ELOG V3.1.5-3fb85fa6