Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 106 of 238  Not logged in ELOG logo
icon5.gif   Cleaning up attachments, posted by Louis de Leseleuc on Tue Mar 15 21:38:01 2011 

I noticed a behavior that might be irritating. 

After attaching/uploading files to an entry and before submitting it, one might press 'Back' or close the browser window.

This in effect cancels the entry and sends into oblivion. HOWEVER the attachments and their thumbnail files remain on the server forever.

Would there be a way to either delete attachments after some time if they don't show up in an entry? Or some other magic trick with the browser? My logbook directories are already full of orphan files that I need to seek and destroy.

Also, any thoughts on automatically cleaning up a logbook directory when the damage is done?

Louis

    icon2.gif   Re: Cleaning up attachments, posted by Stefan Ritt on Fri Mar 18 11:07:50 2011 

Louis de Leseleuc wrote:

I noticed a behavior that might be irritating. 

After attaching/uploading files to an entry and before submitting it, one might press 'Back' or close the browser window.

This in effect cancels the entry and sends into oblivion. HOWEVER the attachments and their thumbnail files remain on the server forever.

Would there be a way to either delete attachments after some time if they don't show up in an entry? Or some other magic trick with the browser? My logbook directories are already full of orphan files that I need to seek and destroy.

Also, any thoughts on automatically cleaning up a logbook directory when the damage is done?

Louis

Well, this is not so easy. When you leave the browser (via 'Back' or just by closing), it has no way to communicate with the elog server. I could put in some JavaScript, but if people switch off JavaScript there is no way. On the other hand it might be simple to write just a little shell script, which goes through all files on the server and checks if the file name occurs in some elog entry. This can probably be done with some combination of "find" and  "grep", but I'm not a shell script expert.

       icon2.gif   Re: Cleaning up attachments, posted by Louis de Leseleuc on Mon Mar 21 17:42:15 2011 

Stefan Ritt wrote:

Louis de Leseleuc wrote:

I noticed a behavior that might be irritating. 

After attaching/uploading files to an entry and before submitting it, one might press 'Back' or close the browser window.

This in effect cancels the entry and sends into oblivion. HOWEVER the attachments and their thumbnail files remain on the server forever.

Would there be a way to either delete attachments after some time if they don't show up in an entry? Or some other magic trick with the browser? My logbook directories are already full of orphan files that I need to seek and destroy.

Also, any thoughts on automatically cleaning up a logbook directory when the damage is done?

Louis

Well, this is not so easy. When you leave the browser (via 'Back' or just by closing), it has no way to communicate with the elog server. I could put in some JavaScript, but if people switch off JavaScript there is no way. On the other hand it might be simple to write just a little shell script, which goes through all files on the server and checks if the file name occurs in some elog entry. This can probably be done with some combination of "find" and  "grep", but I'm not a shell script expert.

How about this:

Whenever a new file is uploaded, it would first be stored in a temporary directory. When the entry gets submitted, the files would be moved to the logbook directory and the entry edited accordingly.

Any wrongfully stored file would remain in that temp dir. Starting/restarting the daemon would cleanup that directory. Seems like a simpler approach and does not involve scripting the browser.

icon5.gif   http://midas.psi.ch/elog/download/windows/ doesn't have the latest 2.90 release, posted by John Rouillard on Mon Mar 21 02:40:31 2011 
It looks like the newest windows release of elog at
http://midas.psi.ch/elog/download/windows/ is 2.81.

  elog281-1.exe	        23-Dec-2010 11:42 3.1M
  elog-latest.exe       23-Dec-2010 11:42 3.1M

Can you post the 2.90 release.

Thanks.

-- rouilj
    icon2.gif   Re: http://midas.psi.ch/elog/download/windows/ doesn't have the latest 2.90 release, posted by Stefan Ritt on Mon Mar 21 08:53:48 2011 
> It looks like the newest windows release of elog at
> http://midas.psi.ch/elog/download/windows/ is 2.81.
> 
>   elog281-1.exe	        23-Dec-2010 11:42 3.1M
>   elog-latest.exe       23-Dec-2010 11:42 3.1M
> 
> Can you post the 2.90 release.
> 
> Thanks.
> 
> -- rouilj

Yepp, done. I somehow overlooked it.

- Stefan
icon5.gif   password problem, posted by Ken on Fri Mar 4 20:07:30 2011 

I moved my elog install to a new box on short notice due to an emergency, everything works but none of the passwords are recognized, and are not using what it set in elogd.cfg.  any ideas ?

    icon2.gif   Re: password problem, posted by Stefan Ritt on Mon Mar 7 16:19:35 2011 

Ken wrote:

I moved my elog install to a new box on short notice due to an emergency, everything works but none of the passwords are recognized, and are not using what it set in elogd.cfg.  any ideas ?

You did not specify which version of elog you were using. There was recently an update which uses a new format in the password file. When you start this the first time, the program should convert automatically from the old format to the new format and thus increasing security. If this does not work for some reason, so can do password recovery using the "Forgot password?" link in the login page. 

icon5.gif   Filter on Options, posted by Cossutta L on Thu Feb 24 11:47:07 2011 1.JPG2.JPG3.JPG

I want to implement the following feature in my logbook:
selecting an Option related to a specific Attribute produces a filter on the Options related to the other Attributes.

-----
Example:
I have the following configuration:
" Attributes = Project, Category
Options Project = Agenda, Software
Options Category = General, Data, Result, Meeting, Status, TODO, DONE,
Reminder, Result, Other
...
Quick filter = Project, Category "

I want that: if on the Quick filter I select "Project = Agenda", then the entry "Category" displays only the Options "Meeting, Status, TODO, DONE, Reminder, Other"; if on the Quick filter I select "Project = Software", then the entry "Category" displays only the Options "General, Data, Result, Other".
See the attached JPGs (they are edited printscreens from my logbook).

------


Is there a way to do this?

Thank you in advance!
Cossutta

    icon2.gif   Re: Filter on Options, posted by Stefan Ritt on Thu Feb 24 11:54:18 2011 

Cossutta L wrote:

I want to implement the following feature in my logbook:
selecting an Option related to a specific Attribute produces a filter on the Options related to the other Attributes.

-----
Example:
I have the following configuration:
" Attributes = Project, Category
Options Project = Agenda, Software
Options Category = General, Data, Result, Meeting, Status, TODO, DONE,
Reminder, Result, Other
...
Quick filter = Project, Category "

I want that: if on the Quick filter I select "Project = Agenda", then the entry "Category" displays only the Options "Meeting, Status, TODO, DONE, Reminder, Other"; if on the Quick filter I select "Project = Software", then the entry "Category" displays only the Options "General, Data, Result, Other".
See the attached JPGs (they are edited printscreens from my logbook).

------


Is there a way to do this?

Thank you in advance!
Cossutta

That's possible with conditional attributes:

Attributes = Project, Category
Options Project = Agenda{1}, Software{2}
{1}Options Category = Meeting, Status, TODO, DONE, Reminder, Other
{2}Options Category = General, Data, Result, Other
Quick Filter = Project, Category 

       icon2.gif   Re: Filter on Options, posted by Cossutta L on Fri Feb 25 15:01:12 2011 

Stefan Ritt wrote:

Cossutta L wrote:

I want to implement the following feature in my logbook:
selecting an Option related to a specific Attribute produces a filter on the Options related to the other Attributes.

-----
Example:
I have the following configuration:
" Attributes = Project, Category
Options Project = Agenda, Software
Options Category = General, Data, Result, Meeting, Status, TODO, DONE,
Reminder, Result, Other
...
Quick filter = Project, Category "

I want that: if on the Quick filter I select "Project = Agenda", then the entry "Category" displays only the Options "Meeting, Status, TODO, DONE, Reminder, Other"; if on the Quick filter I select "Project = Software", then the entry "Category" displays only the Options "General, Data, Result, Other".
See the attached JPGs (they are edited printscreens from my logbook).

------


Is there a way to do this?

Thank you in advance!
Cossutta

That's possible with conditional attributes:

Attributes = Project, Category
Options Project = Agenda{1}, Software{2}
{1}Options Category = Meeting, Status, TODO, DONE, Reminder, Other
{2}Options Category = General, Data, Result, Other
Quick Filter = Project, Category 

 

Thanks a lot for the prompt answer!

Cossutta

 

 

icon5.gif   Windows 7 and entry storage, posted by Greg Damhorst on Mon Feb 14 23:59:20 2011 

I have been playing with Elog on windows 7.  I want to set up an elog that can be accessed from our local network, and I discovered that can be done by running the server on windows and entering the host machine's computer-name:8080 in a browser on any machine on the network.

I had the server registered as a windows service, but oddly, when I re-booted the server didn't seem to be running (problem #1).

I then ran into some other problems (currently trivial) but I eventually got around to uninstalling and reinstalling Elog.  I deleted all the existing logbooks and data files when I uninstalled, and even deleted everything in the folder I had used as a backup to the Elog directory.  So, after reinstalling, I should be getting only the demo logbook and the original demo entry, right?

BUT I'm actually getting the three logbooks that I had created before I uninstalled (problem #2).  Even though the entire Elog directory was deleted when I uninstalled... including config file and logbook directory.  I can go into "Program Files" now and see that the config file present is the default/demo config file (from the most recent install)... yet when I launch elog in a browser, I am seeing those three logbooks from before, even though they should be gone from my hard drive.

Elog must be storing data somewhere else... where?

(p.s. I've also tried clearing my cache and deleting cookies in the browser)

If it's relevant, when I'm not on the local PC hosting the server, I am accessing it through a university network, and I've found that I can enter computer-name:8080 from ANY machine on the University's nertwork to access elog.

    icon2.gif   Re: Windows 7 and entry storage, posted by Stefan Ritt on Mon Feb 21 09:05:05 2011 

Greg Damhorst wrote:

I have been playing with Elog on windows 7.  I want to set up an elog that can be accessed from our local network, and I discovered that can be done by running the server on windows and entering the host machine's computer-name:8080 in a browser on any machine on the network.

I had the server registered as a windows service, but oddly, when I re-booted the server didn't seem to be running (problem #1).

I then ran into some other problems (currently trivial) but I eventually got around to uninstalling and reinstalling Elog.  I deleted all the existing logbooks and data files when I uninstalled, and even deleted everything in the folder I had used as a backup to the Elog directory.  So, after reinstalling, I should be getting only the demo logbook and the original demo entry, right?

BUT I'm actually getting the three logbooks that I had created before I uninstalled (problem #2).  Even though the entire Elog directory was deleted when I uninstalled... including config file and logbook directory.  I can go into "Program Files" now and see that the config file present is the default/demo config file (from the most recent install)... yet when I launch elog in a browser, I am seeing those three logbooks from before, even though they should be gone from my hard drive.

Elog must be storing data somewhere else... where?

(p.s. I've also tried clearing my cache and deleting cookies in the browser)

If it's relevant, when I'm not on the local PC hosting the server, I am accessing it through a university network, and I've found that I can enter computer-name:8080 from ANY machine on the University's nertwork to access elog.

Problem #1: Check if the service is on automatic start. Go to "My Computer/Manage/Services and Applications/Services" and search for the elogd entry. On the "Startup Type" column you should see "Automatic". If not, change it by double clicking on it. You might have to be administrator to do this.

Problem #2: Elog stores information ONLY in the directory you install it to. There is only one elogd.cfg file, and the logbook subdirectory below that. So I have no idea where your problem comes from. I would say you did not delete some of the files, but I'm sure you double checked that.

icon5.gif   Edit Mode - Icons, posted by Behdad D on Wed Jan 26 11:33:51 2011 

 Hi all,

 

Is there a way to add more icons to the currently available icons when you are in the edit mode. For example instead of having this  icon if I want to add a different icon that is not in the list.

The reason I ask is that I want for example to have an icon of a bug(for software bugs) or something different.

 

I looked in the elog's installation directory and I could find all of the available icons but couldn't see any place where I could modify the installation to allow me access to the extra icons.

 

Thanks in advance.

Behdad.

    icon2.gif   Re: Edit Mode - Icons, posted by Stefan Ritt on Mon Feb 7 08:46:23 2011 

Behdad D wrote:

 Hi all,

 

Is there a way to add more icons to the currently available icons when you are in the edit mode. For example instead of having this  icon if I want to add a different icon that is not in the list.

The reason I ask is that I want for example to have an icon of a bug(for software bugs) or something different.

 

I looked in the elog's installation directory and I could find all of the available icons but couldn't see any place where I could modify the installation to allow me access to the extra icons.

 

Thanks in advance.

Behdad.

You need to do two things:

1) Add you new icon to  <elog directory>\themes\default\icons

2) Refer to your new icon in the config file like

IOptions Icon = icon1.gif, icon2.gif, new_icon.gif

 

       icon2.gif   Re: Edit Mode - Icons, posted by Behdad D on Wed Feb 9 08:59:40 2011 

Stefan Ritt wrote:

Behdad D wrote:

 Hi all,

 

Is there a way to add more icons to the currently available icons when you are in the edit mode. For example instead of having this  icon if I want to add a different icon that is not in the list.

The reason I ask is that I want for example to have an icon of a bug(for software bugs) or something different.

 

I looked in the elog's installation directory and I could find all of the available icons but couldn't see any place where I could modify the installation to allow me access to the extra icons.

 

Thanks in advance.

Behdad.

You need to do two things:

1) Add you new icon to  <elog directory>\themes\default\icons

2) Refer to your new icon in the config file like

IOptions Icon = icon1.gif, icon2.gif, new_icon.gif

 

 Thank you for the reply but I think you misunderstood me. I am not after icons for the attributes. I am after icons that I can insert it into my records text like this one.... . So I just like to customize my icons in the "Insert Smiley" list.

 

Is this possible?

 

Thank you.

          icon2.gif   Re: Edit Mode - Icons, posted by Stefan Ritt on Wed Feb 9 09:03:25 2011 

Behdad D wrote:

Stefan Ritt wrote:

Behdad D wrote:

 Hi all,

 

Is there a way to add more icons to the currently available icons when you are in the edit mode. For example instead of having this  icon if I want to add a different icon that is not in the list.

The reason I ask is that I want for example to have an icon of a bug(for software bugs) or something different.

 

I looked in the elog's installation directory and I could find all of the available icons but couldn't see any place where I could modify the installation to allow me access to the extra icons.

 

Thanks in advance.

Behdad.

You need to do two things:

1) Add you new icon to  <elog directory>\themes\default\icons

2) Refer to your new icon in the config file like

IOptions Icon = icon1.gif, icon2.gif, new_icon.gif

 

 Thank you for the reply but I think you misunderstood me. I am not after icons for the attributes. I am after icons that I can insert it into my records text like this one.... . So I just like to customize my icons in the "Insert Smiley" list.

 

Is this possible?

 

Thank you.

Ah, ok. Now I understand. This is however deep inside the fckeditor and I have no idea how to change it. Maybe you can get some help from the fckeditor community? All I found is the directory

<elog>/scripts/fckeditor/editor/image/smiley/msn

which contains some smileys. Maybe you can edit those?

             icon2.gif   Re: Edit Mode - Icons, posted by Behdad D on Wed Feb 9 13:04:56 2011 

Stefan Ritt wrote:

Behdad D wrote:

Stefan Ritt wrote:

Behdad D wrote:

 Hi all,

 

Is there a way to add more icons to the currently available icons when you are in the edit mode. For example instead of having this  icon if I want to add a different icon that is not in the list.

The reason I ask is that I want for example to have an icon of a bug(for software bugs) or something different.

 

I looked in the elog's installation directory and I could find all of the available icons but couldn't see any place where I could modify the installation to allow me access to the extra icons.

 

Thanks in advance.

Behdad.

You need to do two things:

1) Add you new icon to  <elog directory>\themes\default\icons

2) Refer to your new icon in the config file like

IOptions Icon = icon1.gif, icon2.gif, new_icon.gif

 

 Thank you for the reply but I think you misunderstood me. I am not after icons for the attributes. I am after icons that I can insert it into my records text like this one.... . So I just like to customize my icons in the "Insert Smiley" list.

 

Is this possible?

 

Thank you.

Ah, ok. Now I understand. This is however deep inside the fckeditor and I have no idea how to change it. Maybe you can get some help from the fckeditor community? All I found is the directory

<elog>/scripts/fckeditor/editor/image/smiley/msn

which contains some smileys. Maybe you can edit those?

 Oh, thanks Stefan. I will try find out, if I do I will post here later on.

Thank you.

                icon2.gif   Re: Edit Mode - Icons, posted by Behdad D on Wed Feb 9 13:12:13 2011 

Behdad D wrote:

Stefan Ritt wrote:

Behdad D wrote:

Stefan Ritt wrote:

Behdad D wrote:

 Hi all,

 

Is there a way to add more icons to the currently available icons when you are in the edit mode. For example instead of having this  icon if I want to add a different icon that is not in the list.

The reason I ask is that I want for example to have an icon of a bug(for software bugs) or something different.

 

I looked in the elog's installation directory and I could find all of the available icons but couldn't see any place where I could modify the installation to allow me access to the extra icons.

 

Thanks in advance.

Behdad.

You need to do two things:

1) Add you new icon to  <elog directory>\themes\default\icons

2) Refer to your new icon in the config file like

IOptions Icon = icon1.gif, icon2.gif, new_icon.gif

 

 Thank you for the reply but I think you misunderstood me. I am not after icons for the attributes. I am after icons that I can insert it into my records text like this one.... . So I just like to customize my icons in the "Insert Smiley" list.

 

Is this possible?

 

Thank you.

Ah, ok. Now I understand. This is however deep inside the fckeditor and I have no idea how to change it. Maybe you can get some help from the fckeditor community? All I found is the directory

<elog>/scripts/fckeditor/editor/image/smiley/msn

which contains some smileys. Maybe you can edit those?

 Oh, thanks Stefan. I will try find out, if I do I will post here later on.

Thank you.

 Ok, I think I found it. The link below explains how to do it. I haven't tried it yet, but it looks about right:

                 http://www.smart-thinker.com/DNNBlog/tabid/1070/EntryID/35/Default.aspx

icon4.gif   Odd bug with conditional and required attributes, posted by T. Ribbrock on Fri Feb 4 23:48:54 2011 

I just ran into an odd bug with conditional attributes: If I add a certain attribute to "Required Attributes", none of the conditionals will work anymore. I have tried to create a small logbook definition that will demonstrate the problem (the original logbook is more complex and uses two sets of conditionals, both of which will be disabled when the bug hits):

; General settings
Menu commands = List, New, Edit, Duplicate, Delete, Reply, Select, Move to, Download, Find, Logout, Help, Config,Admin
List Menu commands = New, Select, Find, Logout, Help, Config, Admin, Import, Download
Date Format = %d/%m/%Y
List conditions = 1
List display = Edit, Type, Created, StatusA, StatusB, Archived, Test Text, Public?

; Attributes
Attributes = Type, Created, StatusA, StatusB, Archived, Test Text, Public?
Required Attributes = Type

; Attribute Types
Type Created = date
Type Archived = date

; Options & Tooltips
Options Type = Type1{0}, Type2{1}
Options StatusA = Status-A-red, Status-A-orange, Status-A
Options StatusB = Status-B-red, Status-B-orange, Status-B
Options Public? = yes,no

; Conditionals
{0}Show Attributes Edit = Type, Created, StatusA, StatusB, Archived, Test Text, Public?
{1}Show Attributes Edit = Type, Created, StatusA, Archived, Test Text, Public?

The above logbook definition works. However, if I replace the Required Attributes = Type with Required Attributes = Type, Public?, the conditionals will no longer work. I can see the difference in the reactions of the browser - with the extra attribute, nothing happens when I change "Type". Without, the browser will spring into action and reload as soon as I change "Type". I've tested this with both Firefox 3.6.13 and Konqueror 4.4.5 on Kubuntu 10.04 as clients. Fortunately, this is not a showstopper for me, as it is not mandatory to have this attribute defined as required, but I find it a weird issue nonetheless.

Cheerio,

Thomas

P.S.: I'm currently running the latest SVN version of elogd on OPenBSD as I ran into the same problem as described in Message 66984. The above problem also happens with the 2.8.1 I was using before. Some feedback: The SVN version compiled and ran without any further intervention on OpenBSD - very nice!

    icon2.gif   Re: Odd bug with conditional and required attributes, posted by Stefan Ritt on Mon Feb 7 15:14:36 2011 

T. Ribbrock wrote:

I just ran into an odd bug with conditional attributes: If I add a certain attribute to "Required Attributes", none of the conditionals will work anymore. I have tried to create a small logbook definition that will demonstrate the problem (the original logbook is more complex and uses two sets of conditionals, both of which will be disabled when the bug hits):

; General settings
Menu commands = List, New, Edit, Duplicate, Delete, Reply, Select, Move to, Download, Find, Logout, Help, Config,Admin
List Menu commands = New, Select, Find, Logout, Help, Config, Admin, Import, Download
Date Format = %d/%m/%Y
List conditions = 1
List display = Edit, Type, Created, StatusA, StatusB, Archived, Test Text, Public?

; Attributes
Attributes = Type, Created, StatusA, StatusB, Archived, Test Text, Public?
Required Attributes = Type

; Attribute Types
Type Created = date
Type Archived = date

; Options & Tooltips
Options Type = Type1{0}, Type2{1}
Options StatusA = Status-A-red, Status-A-orange, Status-A
Options StatusB = Status-B-red, Status-B-orange, Status-B
Options Public? = yes,no

; Conditionals
{0}Show Attributes Edit = Type, Created, StatusA, StatusB, Archived, Test Text, Public?
{1}Show Attributes Edit = Type, Created, StatusA, Archived, Test Text, Public?

The above logbook definition works. However, if I replace the Required Attributes = Type with Required Attributes = Type, Public?, the conditionals will no longer work. I can see the difference in the reactions of the browser - with the extra attribute, nothing happens when I change "Type". Without, the browser will spring into action and reload as soon as I change "Type". I've tested this with both Firefox 3.6.13 and Konqueror 4.4.5 on Kubuntu 10.04 as clients. Fortunately, this is not a showstopper for me, as it is not mandatory to have this attribute defined as required, but I find it a weird issue nonetheless.

Cheerio,

Thomas

P.S.: I'm currently running the latest SVN version of elogd on OPenBSD as I ran into the same problem as described in Message 66984. The above problem also happens with the 2.8.1 I was using before. Some feedback: The SVN version compiled and ran without any further intervention on OpenBSD - very nice!

Your problem is the "?" in the attribute Public?.  Attributes may only contain ordinary characters. Unfortunately I did not document this so far. Therefore I put some fix in SVN revision 2387 which allows your attribute Public?, but I'm not 100% sure if this works in all places. The safest is just to remove the question mark.

       icon2.gif   Re: Odd bug with conditional and required attributes, posted by T. Ribbrock on Mon Feb 7 17:26:26 2011 

Stefan Ritt wrote:

 

Your problem is the "?" in the attribute Public?.  Attributes may only contain ordinary characters. Unfortunately I did not document this so far. Therefore I put some fix in SVN revision 2387 which allows your attribute Public?, but I'm not 100% sure if this works in all places. The safest is just to remove the question mark.

 Thanks Stefan, I'll try that. It's strange, though: At work, we're running 2.7.6 (and have used older versions in the past) and we have several logbooks with each at least one or two attributes with '?' and never had a problem with conditionals. Hence my surprise when this suddenly hit me with 2.8.1+ at home. Removing the '?' would be quite some work, as I'd have to change all logbooks and the associated data (the latter could probably be done with "rpl", I hope). I'll think about it.

icon5.gif   Fckedit and quotation style sheets, posted by Robert Heine on Wed Feb 2 15:26:53 2011 

Dear colleagues,

I have edited my own style sheets for elog, but if I use the reply function while having fckedit as editor, the quotations have the standard elog colors, not mine. With elog's own editor, I get my colors. I figured out that fckedit inserts the quote as HTML-block with "hard coded" colors, but I am not able to find the template fckedit uses for it! Does anyone know the path to this template?

Thank you in advance

Robert Heine

    icon2.gif   Re: Fckedit and quotation style sheets, posted by Stefan Ritt on Mon Feb 7 16:44:54 2011 

Robert Heine wrote:

Dear colleagues,

I have edited my own style sheets for elog, but if I use the reply function while having fckedit as editor, the quotations have the standard elog colors, not mine. With elog's own editor, I get my colors. I figured out that fckedit inserts the quote as HTML-block with "hard coded" colors, but I am not able to find the template fckedit uses for it! Does anyone know the path to this template?

Thank you in advance

Robert Heine

That's actually a limitation of fckedit. It simply does not interprete any style sheets, that's why actually the elogd program hard-wires the colors etc. Sorry for that.  

ELOG V3.1.5-3fb85fa6