Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 559 of 808  Not logged in ELOG logo
ID Date Icon Author Author Emaildown Category OS ELOG Version Subject
  1616   Sat Jan 21 14:02:57 2006 Reply Giorgio Croci Candianig.crocic@libero.itBug report 2.6.1Re: Access to global configuration in v2.6.1
 
> I tried to reproduce your problem, but could not. In my windows installation it looks fine. You only see the
> (save and cancel) buttons only if you go to "Change [global]", otherwise you see the "Change [global]", "Delete
> this logbook" etc. buttons. Have you tried with the default elogd.cfg which comes from the distribution?

Yes, I tried that. Maybe I'll have some other try on other PCs and investigate further, I'll surely let you know. Thanks
for the prompt response and compliments for your very good work! ELog is really a great piece of software.
  1626   Wed Jan 25 01:08:06 2006 Reply Giorgio Croci Candianig.crocic@libero.itBug report 2.6.1Re: Access to global configuration in v2.6.1
> > I just installed v.2.6.1 coming from the previous 2.6.0 (on Win2000)
> > When I access the "configuration" function from a logbook, in the cfg page I only see two buttons in the header
> > (save or cancel); in the previous version I saw more buttons there ("global config", "create new logbook" and so
> > on), so here I'm unable to access global configuration or logbook management (except for current logbook options).
> 
> I tried to reproduce your problem, but could not. In my windows installation it looks fine. You only see the
> (save and cancel) buttons only if you go to "Change [global]", otherwise you see the "Change [global]", "Delete
> this logbook" etc. buttons. Have you tried with the default elogd.cfg which comes from the distribution?

Here I am again... I built and installed v2.6.1 also on a different system, this time on linux; i tried both with the
existing cfg file and with the new cfg.
Choosing "configuration", I still only see the current logbook configuration file section with "Save" and "cancel"
buttons, no access to global config whatsoever; the same as I saw on windows version. I tried version 2.6.1-1622.
Regards
Giorgio
  1628   Wed Jan 25 12:08:13 2006 Reply Giorgio Croci Candianig.crocic@libero.itBug report 2.6.1Re: Access to global configuration in v2.6.1
> I tried again, using the configuration file from the distribution (elog:1627/1). Hitting "config", I see the picture
> attached (elog:1627/2). So it's a mystery why it is different in your case...

Indeed... I peeked into the code, and I got the feeling it could be a matter of incorrect user setup (though I have no
users/authorizations defined at all) or maybe browser cookies. A thin trail, but I'll try some debug directly on the
code and, should I come up with something, I'll surely notice you.
Thanks for your support!
  1772   Tue Mar 14 17:11:10 2006 Reply Giorgio Croci Candianig.crocic@libero.itBug report 2.6.1Re: Access to global configuration in v2.6.1
> > or maybe browser cookies. 
> 
> That rings a bell. If you change user permissions (like password file/no password file/rename logbooks) you might be
> fooled by old cookies. Just delete all cookies in your browser and try again.

Hi,
here I am at it again. Since my first posts, I tried to install the latest version of elog out-of-the-box on one pair of
PCs from scratch (fresh elog install on new, just-installed PCs, OS WinXP Pro and Win2000), but with no results. No
trace of the global configuration menu or the buttons to reach it.
Neither taking a look at the code has helped, I could not figure out exactly where the button bar was generated.
Didn't anybody other point out a similar behaviour? Do you have any suggestion for any tests to carry out?
Thanks
GiorgioCC
  1917   Tue Aug 29 15:16:31 2006 Reply Giorgio Croci Candianig.crocic@libero.itBug reportLinux | Windows2.6.1Re: Access to global configuration in v2.6.1
Hi,
after a long time, I thought I could try to investigate the code some further,
and maybe I found some hint.
The page where I expected the options to show was (probably) the one generated by this function:

void show_admin_page(LOGBOOK * lbs, char *top_group)

Inside, it, the buttons are generated by following code snippets:

(elogd.c:10443)
if (is_admin_user_global(getparam("unm"))) {
   sprintf(str, loc("Change %s"), "[global]");
   rsprintf("<input type=submit name=cmd value=\"%s\">\n", str);
}
(elogd.c:10461)
  if (is_admin_user("global", getparam("unm"))) {
     rsprintf("<input type=submit name=cmd value=\"%s\">\n", loc("Delete this logbook"));
     rsprintf("<input type=submit name=cmd value=\"%s\">\n", loc("Rename this logbook"));
     rsprintf("<input type=submit name=cmd value=\"%s\">\n", loc("Create new logbook"));
}

The functions called to validate the user are following:

(elogd.c:21298)
BOOL is_admin_user(char *logbook, char *user):
//...
   if (user == NULL)
      return FALSE;

(elogd.c:21324)

BOOL is_admin_user_global(char *user)
{
//...
   if (user == NULL)
      return FALSE;

Since I assume that I'm probably in the "userless" case (no users are defined in the configuration,
and no usernames are set when launching elog either), I would understand that this causes the options for
global config editing etc etc not to be shown on the admin page.

In my opinion (and given that my interpretation of the code flow isn't wrong), the "null"
user should be indeed considered admin, at least as long as no user management is defined whatsoever.
(If I got it right, if user==NULL, but a password file exists, user management is applied,
thus we're in the case of anonymous user which is correctly not admin).

Again, I might be wrong, but I would be curious to hear an opinion from you about this issue.
Thanks again for your attention.
GiorgioCC
  66706   Tue Feb 9 18:49:10 2010 Question FX FREREfxfrere@neuf.frQuestionWindows2.7.8-2280could not get the threaded display working

Hi,

I have been trying to get the display mode into threaded by default, it does not work on any of my logbooks. I saw related threads in this forum but none gave me a solution (unless the 2.7.8-2282 is available for download).

Here is a simple example which i can not get working.

thanks for your help

FX

Attachment 1: elogd.cfg
[global]
Welcome Title            = 
<div style="text-align: center;">log-book.</div>
; Se puede poner un vinculo havcia un sitio web y cambiar la imagen ; Esta imagen debe encontrarse en el directorio \ELOG\themes\default Title image = <img border=0 src="logo.gif"> ; Para mas seguridad se puede cambiar el puerto de ELOG port = 2 ;Uso de https para la connexion SSL = 1 ; Se debe reemplazar estos datos con los datos del servidor de mail de la empresa si se debe (o quiere) mandar emails SMTP host = toto.com Language = spanish Main Tab = Accueil Bottom text = <div style="text-align: center;">Elog backups <img src="logo.png"></div> Email format = 111 logfile = Archivo_de_logs.txt Logging level = 2 ;Display mode = threaded ; Los usuarios deben crear una cuenta para poder utilizar la nueva herramienta Password file = Usuarios.txt Self register = 2 ; La contraseña nominal es: admin, se puede cambiar si necesario Admin user = administrador ; Si se quiere restringir los derechos de delete Allow Delete = administrador ; Si se quiere restringir los derechos de modificacion ; Allow Edit = administrador ; Si se quiere restringir los derechos de créacion ; Allow New = administrador Menu commands = List, Find, New, Delete, Reply, Logout, Help List Menu commands = Find, New, Logout, Help Guest Menu commands = List, Find, Login, Help Guest List Menu commands = Find, Login, Help [Backups del sistema] Theme = default Comment = test backup - Logbook Program Welcome title = <img src="logo.gif"><p><font size=5 color=white>Welcome to our Elog</font> Attributes = Usuario, Tarea, Fecha Operacion, Status, Subsistema, Base de Datos IOptions Status= "Delete-icon.png", "Check-icon.png" Icon comment Delete-icon.png = Failed Icon comment Check-icon.png = OK Thread Icon = Status Thread Display = $Fecha Operacion,$Tarea,$Subsistema Locked Attributes = Usuario Required Attributes = Usuario, Tarea, Fecha Operacion, Status, Subsistema, Base de Datos Preset Usuario = $long_name Options Tarea = Backup, Restore Options Subsistema = DBMGR {a}, MCH {b}, ALL {c} {a}MOptions Base de Datos = ALL BASES, base1, base2, base3, base4 {b}MOptions Base de Datos = ALL, BD1, BD2, BD3 {c} Locked Attributes = Usuario {c} Show Attributes Edit= Usuario, Tarea, Fecha Operacion, Status, Subsistema {c} Required Attributes = Usuario, Tarea, Fecha Operacion, Status, Subsistema Message comment = Commentarios: Type Fecha Operacion = date Preset Fecha Operacion = $date Mode commands = 1 Display Mode = threaded Page Title = Backups del sistema - $subject ;Reverse sort = 1 ;Quick filter = Date, Tarea, Subsistema
  66707   Tue Feb 9 18:54:22 2010 Question FX FREREfxfrere@neuf.frQuestionWindows2.7.8-2280can one use a IOption field for conditional tests?

Hi again,

I was wondering if one could use a conditional statement on an IOption attribute? Indeed i try to do a visual logbook (a green check for OK result, a red cross for NOK result), unfortunately i cannot refer to the attributes value for conditional test, e.g:

IOptions Status= "Delete-icon.png" {1}, "Check-icon.png"{2}
Icon comment Delete-icon.png = Failed
Icon comment Check-icon.png = OK

{1} Show Attribute Edit = Attribute1, Attribute2

Thread Icon = Status

Attribute1 and 2 do not have any sense if the result was successful,

ELOG interprets the {1} and {2} as being part of the icon name!

thanks again for your help

FX

  66283   Tue Mar 31 15:16:58 2009 Question Franck Sabatiefsabatie@cea.frBug reportLinux2.7.5Attachment not downloaded when elog is mirrored ?

Hello,

I just mirrored a logbook and noticed attachments are missed.

On another similar note, when an email notification is sent and the post has attachment, the attachment show up in the email BUT there is nothing in them.

Anything special I should know about those attachments ?

Thank you,

F.Sabatié

 

ELOG V3.1.5-3fb85fa6