Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 671 of 808  Not logged in ELOG logo
New entries since:Thu Jan 1 01:00:00 1970
ID Date Icon Author Author Email Categorydown OS ELOG Version Subject
  66230   Fri Feb 27 20:52:42 2009 Reply Dennis Seitzdenseitz@comcast.netBug reportMac OSX2.7.5Re: Attachment problems

 

Stefan Ritt wrote:

 

Dennis Seitz wrote:

Apologies if these are known bugs, I'm very busy at the moment but I wanted to post this before I forget:

I'm using Safari on a Mac to make Elog entries.

1) The preview of some pdf attachments in edit mode displays huge areas of white space around each page. I can send examples if you'd like - please email me directly, for some reason I never get email notifications from this forum (and they aren't being tagged as spam, so I don't know where they go).

2) When that happens, the text entry area for ELcode format expands horizontally to match the huge pdf file width. Text without line feeds then doesn't wrap until the huge window width is filled, so I have to scroll horizontally all the time while editing to see what I've written.

3) So I turned off attachment previewing as a workaround (Preview attachments = 0 ). That worked fine by not expanding the entry area, but I noticed some odd behavior. The list of attachments below the text entry area is badly formatted. Here's a screen shot:

Picture_1.png

I tried to reproduce this with a new entry but the text was formatted properly for that entry.

P.S. While editing this entry, I see that the text area width is again being set by the width of the picture I've attached - try it yourself; if you try to resize your browser window smaller while editing, the text will only wrap until the width of the attachment is reached - the text no longer wraps at smaller widths than the attachment. 

 

Your problem 1) is probably caused by ImageMagick. I use that package to convert PDFs to images. If this package estimates the paper size from the PDF incorrectly, you're screwed. You can go and actually locate the thumbnail pictures in the ELOG directory (should be named  xxxxxx_yyyyyy_<name>-0.png). If you check these pictures, they are probably already huge.

Problem 3) indeed is a small bug in elogd, which I fixed in revision #2178. If you can download the SVN version and recompile elogd, you should be fine:

Capture.png

 

 Thanks for the bug fix, we'll get our installation updated ASAP. And I will look into why some of my pdf file image sizes are interpreted incorrectly by ImageMagick, it might having something to do with how I've generated them.

Is it possible to set the default image size to always scale to fit the browser window? For example, this entry has a png attachment, but it still suffers from the fact that the text window size is set by the width of the png image.

If I'm forgetting something, sorry, I'm writing in a hurry!

Dennis

  66234   Wed Mar 4 16:32:56 2009 Reply Niklasniklas@hoglund.pp.seBug reportLinux2.7.5 2142Re: Elogd crashes with: *** stack smashing detected ***

Stefan Ritt wrote:

 

Niklas wrote:

Create a list of elog cookies, and store only these as parameters. Examplef:

int process_http_request(const char *request, int i_conn)

{
...
const char *cookie_list[] = { "upwd", "unm", "elmode", "urem", "wpwd", "apwd", "uname", NULL };
...
...
...
         /* store cookie as parameter */
         for(i=0; cookie_list[i]; i++) {
            if(strcmp(cookie_list[i], str) == 0) {
               setparam(str, cookie);
               break;
            }
         }

...

 

I'm not sure if this works, since your test

i < (int) sizeof(cookie)

still will stop parsing cookies if there is one which is too long. So I added your test plus changed the parsing to:

for (i = 0; *p && *p != ';' && *p != '\r' && *p != '\n' ; )

   if (i < (int) sizeof(cookie)-1)

      cookie[i++] = *p++;

   cookie[i] = 0;

 


The modification is in the curren SVN revision (# 2162). So have a look and check that it works.

Tried 2178 and I seem to hit some endless loop when I have big cookies. The loop seems to be in this for-loop (from gdb).

I perhaps you should have:

for (i = 0; *p && *p != ';' && *p != '\r' && *p != '\n' ; )

   if (i < (int) sizeof(cookie)-1)

      cookie[i++] = *p++;

   else
      break;

   cookie[i] = 0;

... Seems to be working for me =)

 

  66235   Wed Mar 4 16:41:27 2009 Reply Stefan Rittstefan.ritt@psi.chBug reportLinux2.7.5 2142Re: Elogd crashes with: *** stack smashing detected ***
Niklas wrote:

Tried 2178 and I seem to hit some endless loop when I have big cookies. The loop seems to be in this for-loop (from gdb).

I perhaps you should have:

for (i = 0; *p && *p != ';' && *p != '\r' && *p != '\n' ; )

   if (i < (int) sizeof(cookie)-1)

      cookie[i++] = *p++;

   else
      break;

   cookie[i] = 0;

... Seems to be working for me =)

Yepp, you're right. I applied your change to the distribution code. 

 

  66246   Wed Mar 11 11:28:27 2009 Question Dominique Bolladominique.bolla@synchrotron-soleil.frBug reportLinuxV2.7.5-214Elogd crash

Hello,

Please could you help me.

We have 2 elog servers synchronized every minute via Elog mirroring function.

2 or 3 times a week, the slave crashes and we have to restart Elogd. I have found in /var/log/messages the same message every time elogd crash :

xmalloc: not enough memory

Thanks.

Dominique Bolla.

  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é

 

  66284   Wed Apr 1 11:15:29 2009 Angy Kristian Rune Larsenkrl@dmi.dkBug reportLinux2.75Missing icons when running trough Apache proxy, elogd version 2.75

Hi

Tested this using the 2.6.1 version which comes packed with ubuntu-dapper and a 2.7.5 version I've compiled from source.

If I compile the 2.7.5 version from source and start it using

sudo /usr/local/sbin/elogd -c /usr/local/elog/elogd.cfg

 

config snippets below

---------------------------------

/usr/local/elog/elogd.cfg:

[global]
port = 8080
;url = http://solsikker.dmi.dk/elog/

[demo]
Theme = default
Comment = General linux tips & tricks
Attributes = Author, Type, Category, Subject
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Other
Extendable Options = Category
Required Attributes = Author, Type
Page Title = ELOG - $subject
Reverse sort = 1
Quick filter = Date, Type
------------------------------------

The icons show up !!

 

If I go through an apache proxy (config snippets below)

----------------------------------------

/usr/local/elog/elogd.cfg:

[global]
port = 8080
url = http://solsikker.dmi.dk/elog/

[demo]
Theme = default
Comment = General linux tips & tricks
Attributes = Author, Type, Category, Subject
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Other
Extendable Options = Category
Required Attributes = Author, Type
Page Title = ELOG - $subject
Reverse sort = 1
Quick filter = Date, Type

From apache conf

ProxyPass /elog/ http://solsikker.dmi.dk:8080/
ProxyPassReverse /elog/ http://solsikker.dmi.dk:8080/
<Proxy *>
        Order deny,allow
        allow from all
</Proxy>
-------------------------------------

The icons are missing !!!

The icons a showing up when using apache and the 2.6.1 elog version.

 

Best Regards

Rune

 

 

 

  66299   Fri Apr 10 22:54:56 2009 Angy Mikemike@raghuexim.comBug reportLinux2.7.5ELOG V2.7.5 Protect Selection page = 1 Crashes Program

When I try to set

Protect Selection page = 1

in the config file elog crashes. Attached is my config file.

elog 2.7.5 built Apr  8 2009, 16:52:07 revision 130

Attachment 1: elog.cfg
[global]
port = 8080
URL = https://raghu.dyndns.org/
Summary lines = 32
Password file = passwords.pwd
Quote on reply = 0
Expand default = 3
Protect Selection page = 0
Thumbnail size = 10%
Bottom text = <center>Home Collections by Raghu - Discussion Forum</center>
Bottom text login = <center>Welcome to Home Collections by Raghu</center>
Display mode = threaded
Preset Author = $long_name
Subst on edit author = $long_name
Preset on reply Author = $long_name
Preset on Duplicate Author = $long_name
List Menu commands = New, Find, Select, Config, Admin, Change password, Logout
Menu commands = Back, New, Edit, Delete, Reply, Find, Move to, Config, Help
Admin user = sliver, raghu
Allow Delete = sliver, brian, raghu
Allow Move To = sliver, brian, raghu
Group Product Issues = Open, Closed
Group New Products = Definite, Considered, Canceled

[Open]
Theme = default
Comment = Open Issues With Current Products
Attributes = Author, Category, Subject
Options Category = Linen, Metal, Pillow, Electrical, Other
Required Attributes = Category
Page Title = Open Product Issues - $subject
Reverse sort = 1
Quick filter = Date, Category
Move to = Closed

[Closed]
Theme = default
Comment = Closed Issues With Current Products
Attributes = Author, Category, Subject
Options Category = Linen, Metal, Pillow, Electrical, Other
Required Attributes = Category
Page Title = Closed Product Issues - $subject
Reverse sort = 1
Quick filter = Date, Category
Move to = Open

[Considered]
Theme = default
Comment = Considered Product Discussion
Attributes = Author, Category, Subject
Options Type = Open, Closed, Other
Options Category = Linen, Metal, Pillow, Electrical, Other
Required Attributes = Category
Page Title = Considered Products - $subject
Reverse sort = 1
Quick filter = Date, Category
Move to = Definite, Canceled

[Definite]
Theme = default
Comment = Definite Product Discussion
Attributes = Author, Category, Subject
Options Type = Open, Closed, Other
Options Category = Linen, Metal, Pillow, Electrical, Other
Required Attributes = Category
Page Title = Definite Products - $subject
Reverse sort = 1
Quick filter = Date, Category
Move to = Considered, Canceled

[Canceled]
Theme = default
Comment = Canceled Products Discussion
Attributes = Author, Category, Subject
Options Type = Open, Closed, Other
Options Category = Linen, Metal, Pillow, Electrical, Other
Required Attributes = Category
Page Title = Canceled Products - $subject
Reverse sort = 1
Quick filter = Date, Category
Move to = Definite, Considered
  66305   Tue Apr 14 08:40:12 2009 Reply Stefan Rittstefan.ritt@psi.chBug reportLinux2.7.5Re: ELOG V2.7.5 Protect Selection page = 1 Crashes Program

 

Mike wrote:

When I try to set

Protect Selection page = 1

in the config file elog crashes. Attached is my config file.

elog 2.7.5 built Apr  8 2009, 16:52:07 revision 130

 

Actually your combination of "bottom text" with "protect selection page" caused the trouble. If fixed the bug in revision 2189.

ELOG V3.1.5-3fb85fa6