Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 106 of 808  Not logged in ELOG logo
ID Date Icon Author Author Email Category OS ELOG Version Subjectdown
  1019   Thu Mar 24 13:40:27 2005 Angy Emiliano GabrielliAlberT@SuperAlberT.itBug reportLinuxr1592Re: wrong handling of attachment names
> When an attached image name contains a space in its filename and attachment
> display is enabled elog builds a wrong url to the image:
> 
> http://arcolog.roma2.infn.it:8080/ARCO/050309_170709/peeling+002.jpg
> 
> instead of the correct one:
> 
> http://arcolog.roma2.infn.it:8080/ARCO/050309_170709_peeling+002.jpg
> 
> The more annoing thing is that elogs hangs on this. a strace shows a select
> on fd n°3 and 5 that loops forever (returning a timeout error):
> 
> send(4, "<141>Mar 23 11:36:25 elogd[22189"..., 35, 0) = 35
> rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
> select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
> select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
> 
> 
> May be the better solution is, after fixing the bug for backward
> compatibility with already uploaded images, to implement a forced characters
> substitution at upload time, replacing spaces and every character not in a
> "allowed chars" list with an underscore

donno if the following is correlated, otherwise there is another problem I
guess :-)
I attached a strace of elog, hope you'll find it useful.

- Irestarted the daemon
- attached strace to it
- requested the list for a testin logbook, few entries some quite big images 
  (two thumbnails, the other are old images get resized my the browser)
- repeted previous point a couple of times
- press F5 (mozilla-firefox)  the browser hangs 4ever
- stop the load
- repeat point 3, all right
- F5 => hangs
- F5 => hangs

there should be some problem, may be in the socket ?
Attachment 1: elog_trace.txt
Process 26302 attached - interrupt to quit
select(1024, [3], NULL, NULL, {0, 318000}) = 0 (Timeout)
select(1024, [3], NULL, NULL, {1, 0})   = 0 (Timeout)
select(1024, [3], NULL, NULL, {1, 0})   = 0 (Timeout)
select(1024, [3], NULL, NULL, {1, 0})   = 0 (Timeout)
select(1024, [3], NULL, NULL, {1, 0})   = 0 (Timeout)
select(1024, [3], NULL, NULL, {1, 0})   = 1 (in [3], left {0, 358000})
accept(3, {sa_family=AF_INET, sin_port=htons(34793), sin_addr=inet_addr("141.108.255.111")}, [16]) = 5
time(NULL)                              = 1111667888
socket(PF_FILE, SOCK_STREAM, 0)         = 6
connect(6, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)
close(6)                                = 0
open("/etc/hosts", O_RDONLY)            = 6
fcntl64(6, F_GETFD)                     = 0
fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
fstat64(6, {st_mode=S_IFREG|0644, st_size=9153, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(6, "127.0.0.1\tlocalhost\t\tsparcserv\n1"..., 4096) = 4096
read(6, "sp\tws106\n192.168.0.107  \t\tws107."..., 4096) = 4096
read(6, ".0.227  \t\tws227.ltsp\tws227\n192.1"..., 4096) = 961
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0x40018000, 4096)                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6
connect(6, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("141.108.255.3")}, 28) = 0
send(6, "\2D\1\0\0\1\0\0\0\0\0\0\003111\003255\003108\003141\7i"..., 46, 0) = 46
gettimeofday({1111667888, 460326}, NULL) = 0
poll([{fd=6, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(6, FIONREAD, [216])               = 0
recvfrom(6, "\2D\205\200\0\1\0\1\0\4\0\3\003111\003255\003108\00314"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("141.108.255.3")}, [16]) = 216
close(6)                                = 0
select(1024, [5], NULL, NULL, {6, 0})   = 1 (in [5], left {6, 0})
recv(5, "GET /test/?mode=full&attach=1 HT"..., 100000, 0) = 622
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 35, 0) = 35
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 653, 0) = 653
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40246000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4026f000
mmap2(NULL, 151552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40298000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402bd000
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402fb000
open("/var/lib/elog/test/050324a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 7\nDate: Thu Mar 24 10:5"..., 250999) = 241
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
open("/var/lib/elog/test/050324_105313_back 42.jpg.thumb", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/var/lib/elog/test/050324_110101_back 42.JPG.thumb", O_RDONLY) = -1 ENOENT (No such file or directory)
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050323a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 765, SEEK_SET)                 = 765
read(6, "$@MID@$: 6\nDate: Wed Mar 23 12:2"..., 250999) = 271
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
open("/var/lib/elog/test/050323_122120_Poster1_PCaPAC05.pdf.thumb", O_RDONLY) = 6
close(6)                                = 0
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050323a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 5\nDate: Wed Mar 23 12:0"..., 250999) = 1036
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050311a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 4\nDate: Fri Mar 11 18:0"..., 250999) = 2546
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
open("/var/lib/elog/test/050311_175308_Non-reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
open("/var/lib/elog/test/050311_180201_reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
open("/var/lib/elog/test/050311_180244_reversed_and_non-reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050310a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 3\nDate: Thu Mar 10 09:0"..., 250999) = 1068
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050307a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 202, SEEK_SET)                 = 202
read(6, "$@MID@$: 2\nDate: Mon Mar 07 16:0"..., 250999) = 180
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050307a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 1\nDate: Mon Mar 07 15:1"..., 250999) = 382
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
munmap(0x40246000, 167936)              = 0
munmap(0x4026f000, 167936)              = 0
munmap(0x40298000, 151552)              = 0
munmap(0x402bd000, 253952)              = 0
munmap(0x402fb000, 253952)              = 0
send(5, "HTTP/1.1 200 Document follows\r\nS"..., 241, 0) = 241
send(5, "<!DOCTYPE HTML PUBLIC \"-//W3C//D"..., 11022, 0) = 11022
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 79, 0) = 79
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 272, 0) = 272
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 11057, 0) = 11057
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 35, 0) = 35
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
select(1024, [3 5], NULL, NULL, {1, 0}) = 1 (in [5], left {0, 718000})
time(NULL)                              = 1111667888
select(1024, [5], NULL, NULL, {6, 0})   = 1 (in [5], left {6, 0})
recv(5, "GET /test/favicon.ico HTTP/1.1\r\n"..., 100000, 0) = 534
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 35, 0) = 35
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 565, 0) = 565
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
open("/usr/share/elog/themes/arco/favicon.ico", O_RDONLY) = 6
lseek(6, 0, SEEK_END)                   = 318
lseek(6, 0, SEEK_CUR)                   = 318
lseek(6, 0, SEEK_SET)                   = 0
time([1111667888])                      = 1111667888
read(6, "\0\0\1\0\1\0\20\20\20\0\1\0\4\0(\1\0\0\26\0\0\0(\0\0\0"..., 318) = 318
close(6)                                = 0
send(5, "HTTP/1.1 200 Document follows\r\nS"..., 546, 0) = 546
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 79, 0) = 79
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 259, 0) = 259
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 35, 0) = 35
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
select(1024, [3 5], NULL, NULL, {1, 0}) = 1 (in [5], left {0, 322000})
time(NULL)                              = 1111667894
select(1024, [5], NULL, NULL, {6, 0})   = 1 (in [5], left {6, 0})
recv(5, "GET /test/?mode=full&attach=1 HT"..., 100000, 0) = 622
time([1111667894])                      = 1111667894
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:14 elogd[26302"..., 35, 0) = 35
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667894])                      = 1111667894
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:14 elogd[26302"..., 653, 0) = 653
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40246000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4026f000
mmap2(NULL, 151552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40298000
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402bd000
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402fb000
open("/var/lib/elog/test/050324a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 7\nDate: Thu Mar 24 10:5"..., 250999) = 241
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
open("/var/lib/elog/test/050324_105313_back 42.jpg.thumb", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/var/lib/elog/test/050324_110101_back 42.JPG.thumb", O_RDONLY) = -1 ENOENT (No such file or directory)
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050323a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 765, SEEK_SET)                 = 765
read(6, "$@MID@$: 6\nDate: Wed Mar 23 12:2"..., 250999) = 271
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
open("/var/lib/elog/test/050323_122120_Poster1_PCaPAC05.pdf.thumb", O_RDONLY) = 6
close(6)                                = 0
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050323a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 5\nDate: Wed Mar 23 12:0"..., 250999) = 1036
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050311a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 4\nDate: Fri Mar 11 18:0"..., 250999) = 2546
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
open("/var/lib/elog/test/050311_175308_Non-reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
open("/var/lib/elog/test/050311_180201_reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
open("/var/lib/elog/test/050311_180244_reversed_and_non-reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050310a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 3\nDate: Thu Mar 10 09:0"..., 250999) = 1068
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
... 1508 more lines ...
  1023   Fri Mar 25 00:30:57 2005 Reply Stefan Rittstefan.ritt@psi.chBug reportLinuxr1592Re: wrong handling of attachment names
> - Irestarted the daemon
> - attached strace to it
> - requested the list for a testin logbook, few entries some quite big images 
>   (two thumbnails, the other are old images get resized my the browser)
> - repeted previous point a couple of times
> - press F5 (mozilla-firefox)  the browser hangs 4ever
> - stop the load
> - repeat point 3, all right
> - F5 => hangs
> - F5 => hangs

I tried to reproduce this problem, but everything was fine. This problem was never
reported by anyone else as well.
  1024   Fri Mar 25 00:33:51 2005 Reply Stefan Rittstefan.ritt@psi.chBug reportLinuxr1592Re: wrong handling of attachment names
> It seems that uploading files with spaces in the name *now* works well... so the
> problem should be somewhere in the handling of existing attachments, not rised when
> the attachment is uploaded with the current version of elog ... it's quite strange

Can you send me one of this old xxxxxxa.log files which causes that crash, I can then fix
it in elogd.c ...
  1031   Tue Mar 29 11:49:29 2005 Reply Emiliano GabrielliAlberT@SuperAlberT.itBug reportLinuxr1592Re: wrong handling of attachment names
> > - Irestarted the daemon
> > - attached strace to it
> > - requested the list for a testin logbook, few entries some quite big images 
> >   (two thumbnails, the other are old images get resized my the browser)
> > - repeted previous point a couple of times
> > - press F5 (mozilla-firefox)  the browser hangs 4ever
> > - stop the load
> > - repeat point 3, all right
> > - F5 => hangs
> > - F5 => hangs
> 
> I tried to reproduce this problem, but everything was fine. This problem was never
> reported by anyone else as well.

I tried to rise the problem with konqueror, and all works nice... running
mozilla-firefox gives the problem instead (also running the test at the same time), so
there should be something in firefox or in the interaction between firefox and elog.
I'll send you one of the elog giving the problems so you can test by yourself as you
asked.

btw:
http://midas.psi.ch/elogs/Forum/?mode=full&attach=1  does not gives any problem to me
even running firefox. so the problem may be in some my elog.cong parameter ...
  1034   Tue Mar 29 16:21:32 2005 Blink Emiliano GabrielliAlberT@SuperAlberT.itBug reportLinuxr1592Re: wrong handling of attachment names
> > - Irestarted the daemon
> > - attached strace to it
> > - requested the list for a testin logbook, few entries some quite big images 
> >   (two thumbnails, the other are old images get resized my the browser)
> > - repeted previous point a couple of times
> > - press F5 (mozilla-firefox)  the browser hangs 4ever
> > - stop the load
> > - repeat point 3, all right
> > - F5 => hangs
> > - F5 => hangs
> 
> I tried to reproduce this problem, but everything was fine. This problem was never
> reported by anyone else as well.

running ethereal I found a bug, hope this is the problem hanging my firefox (I think
we have a good chance it is :-P)

when I have thuimbs enabled, elog returns for the ".thumb" (or ".whatever".. thumb's
extension should be transparent to elog .. uhm... it can't be .. this is a problem)

anyway, having attached a pdf (a big one) and aving attachment display enabled (with
my thumbnails generated by my script)  elog returns for the displayed thumb a
Content-Type for application/x-pdf, instead of the correct image/jpeg. I think this is
the problem.

The only way for elog to know what is the correc\t content type for thumbnails is to
get it from a configuration parameter, becouse it is a chioce of the external script
used to generate them to choose the type of thumbs (jpeg, png, gif ... )
One conf parameter defaulting to jpeg may be the solution
  690   Wed Sep 8 12:36:08 2004 Reply Stefan Rittstefan.ritt@psi.chQuestionLinux2.5.4Re: write access for elogd
> Newly installed elog gives this response when I try to submit a new record:
> 
> New entry cannot be written to directory "./logbooks/Linux/" 
> Please check that it exists and elogd has write access
> 
> I started the daemon.  I've not yet assigned passwords -- just checking
> things out.  How can I create this access to my own directory?

First, find out under which account the daemon is running. It you account if
you start it interactively, if you installed from the RPM, an account "elog" is
created. Then make sure that the account under which elogd is running has write
access to the ./logbooks/Linux/ directory. One common problem is that people
start the daemon the first time under their account, which causes elogd to
create the logbook directory under the user name. If elogd is later started
under the account "elog" this one of course does not have access to the
directory. A

chown -R elog.elog /usr/local/elog/

issued as root could help in that case. Please replace /usr/local/elog with the
directory where elog is installed.
  151   Mon Nov 4 14:55:10 2002 Reply Stefan Rittstefan.ritt@psi.chRequest  Re: wrapping of text in edit field
> I noticed a long url got hard-wrapped when I entered a long one, I patched 
> the source code. I don't know if this was done intentionally, otherwise you 
> might want to change this also.
> 
> diff elogd.c elogd.c.org 
> 4468c4468
> <     rsprintf("<textarea rows=20 cols=%d wrap=soft name=Text>", width);
> ---
> >     rsprintf("<textarea rows=20 cols=%d wrap=hard name=Text>", width);

If the wrap=soft is used, users tend to enter very long lines (without 
hitting return in between). If this line then gets displayed, it can be very 
wide and the user has to horizontally scroll the browser window. What I can 
do is in the display (not the entry) to concatenate URLs which are separated 
only by a CR/LF. But you then have some cases where you have an URL to the 
end of the line, then some other text starting on the next line, which then 
get concatenated falsely (unless you use some clever code which scans 
for ".html" or "xxx/xxx" or something like that.

> Now I don't like both parameters. 20 is too long for my display (1024x768) 
> and 76 is too short. Something dynamically would be cool, but a parameter 
> somewhere in a config file would also be acceptable. (just a thought, makes 
> it easier to upgrade)

You always had the option "Message width = xx" to change the width on the 
text box, and I added in V 2.2.2 the parameter "Message height = xx" where 
you can change the 20 to something else.
  66395   Mon Jun 15 12:51:27 2009 Reply Stefan Rittstefan.ritt@psi.chQuestionLinuxV2.7.6-219Re: wrapping long lines in config file

W.Koster wrote:

Greetings,

I was wondering, is it possible to wrap lines in the config file ?

I have to add a dropdown lost which is kinda long and typing everything on one line will make ik kinda unreadable.
Somehow wrapping the line so each entry will get on a separate line would make it much better readable. (which
makes less errors).


What I do is to use an editor with automatic wrapping functions, like the free PSPad editor. It nicely wraps line and indicates that:

ELOG V3.1.5-3fb85fa6