ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
1008
|
Thu Mar 24 10:31:01 2005 |
| Stephen A. Wood | saw@jlab.org | Bug report | Linux | | Crash with Protect Selection page = 1 | Using 2.5.8, if I set "Protect Selection page" to 1, then elogd seg faults
as soon as it is accessed.
Under 2.5.7, a login page will come up, and the logbook will work, but only
if a valid username/password is given. If an invalid login is given, then
elogd crashes. We have a cron job that periodically restarts elogd if it is
has crashed.
Steve
[global]
logbook tabs = 0
port = 8080
Protect Selection page = 1
Password file = user.info
Admin user = saw
|
1007
|
Wed Mar 23 20:35:55 2005 |
| Stefan Ritt | stefan.ritt@psi.ch | Bug report | Linux | r1592 | Re: 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
This is on purpose. If you want to save an attachment locally and right click on
the attachment, and select "Save link as..." in your browser, then the default
file name is taken from the link. If your original file namw was "peeling
002.jpg", then you want again the same name, and not "050309_170709_peeling
002.jpg, because you would have to delete the date/time part of the file name
each time which would be annoying. That's why I have chosen to put an artificial
"/" between the date/time and the original file name. On the elog side, it's
converted correctly back to the file name.
The problem with blanks in attachment names I could not reproduce. See this
post, which contains an attachment with a blank in it. As you can see, this does
not crash the server. |
Attachment 1: back 42.jpg
|
|
1006
|
Wed Mar 23 16:44:32 2005 |
| Recai Oktas | roktas@omu.edu.tr | Info | Linux | | Re: New Debian package (2.5.8+r1592) -- needs testing | > It seems to work nice to me.
> Just another suggestion: I think it would be better to insert a commented out
> example for all allowed parameters in the distributed /etc/default/elog
Thanks for the test. Please note that, /etc/default/elog is partially auto
created during the installation. All options except PIDFILE and CONFFILE are
currently listed (as configured or commented out). If you didn't see these
options (after the update), there must be a problem. Did you mean the lack of
PIDFILE and CONFFILE in the default file? |
1005
|
Wed Mar 23 12:54:51 2005 |
| Emiliano Gabrielli | AlberT@SuperAlberT.it | Bug report | Linux | r1592 | Re: 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
A correction:
the url generated is correct, infact modifing by hand the names of the files and
the "Attachment:" entry in the .log all works fine
the same problem happens if the filename is, for example foo.JPG and not foo.jpg :
http://arcolog.roma2.infn.it:8080/ARCO/050221_171508/Graph3.JPG
loops forever
http://arcolog.roma2.infn.it:8080/ARCO/050221_171508/Graph3.jpg
works correctly
so, elog does not like spaces in filename and/or uppercase extensions. the
solution is, IMHO, to sanify the uploaded filename at uploading time :-) |
1004
|
Wed Mar 23 11:29:51 2005 |
| Emiliano Gabrielli | AlberT@SuperAlberT.it | Bug report | Linux | r1592 | 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 |
1003
|
Wed Mar 23 11:19:51 2005 |
| Emiliano Gabrielli | AlberT@SuperAlberT.it | Info | Linux | | Re: New Debian package (2.5.8+r1592) -- needs testing | > Hi to all,
>
> I've prepared a new Debian package. This version will probably be the one
> which you'll find in Sarge/stable.
>
> There are some invasive changes in this version which call for a serious
> test. In accordance with a suggestion, I've changed the configuration
> mechanism. For details, please read the NEWS.Debian file attached.
>
> Could the Debian users who follow this forum test it and give some feedback?
> You can download the package from the following link:
>
> http://l10n-turkish.alioth.debian.org/debian/elog_2.5.8+r1592-1_i386.deb
>
> Thanks in advance for your participation,
It seems to work nice to me.
Just another suggestion: I think it would be better to insert a commented out
example for all allowed parameters in the distributed /etc/default/elog
nice work :-) |
1002
|
Wed Mar 23 05:56:35 2005 |
| Recai Oktas | roktas@omu.edu.tr | Info | Linux | | New Debian package (2.5.8+r1592) -- needs testing | Hi to all,
I've prepared a new Debian package. This version will probably be the one
which you'll find in Sarge/stable.
There are some invasive changes in this version which call for a serious
test. In accordance with a suggestion, I've changed the configuration
mechanism. For details, please read the NEWS.Debian file attached.
Could the Debian users who follow this forum test it and give some feedback?
You can download the package from the following link:
http://l10n-turkish.alioth.debian.org/debian/elog_2.5.8+r1592-1_i386.deb
Thanks in advance for your participation, |
Attachment 1: NEWS.Debian
|
elog (2.5.7+r1589-1) unstable; urgency=low
* Starting from this version, /etc/default/elog is installed as part
of the package. Following variables (with default values) can
be used in /etc/default/elog:
# Host where elogd will run.
# HOST=localhost
# Be verbose.
# VERBOSE=yes
# Port where elogd will run.
PORT=8080
# Logbook root directory.
LOGBOOKDIR=/var/lib/elog
# Resource directory (i.e. themes, icons).
RESOURCEDIR=/usr/share/elog
These variables will become the command line options of elogd.
Since command line options always supersede the corresponding
options in config file, the existence of such a file provides a
way to discriminate two roles: System admin (root) and Elog admin.
Elog config file (/etc/elog.conf) now represents the Elog admin's
settings, while /etc/default/elog corresponds to the system admin's
settings. For example, if system admin defines the following line,
the Elog admin's port setting in config file will be ignored and
ELOG will always listen port '80' (note that the compiled-in
default port is '8080'):
PORT=80
One can also change the logbook repository location by using the
same mechanism, e.g. to set the data directory as '/srv/elog' (as
suggested in FHS v2.3) use the following line:
LOGBOOKDIR=/srv/elog
Maintainer scripts should gracefully handle this transition. But
please note that those system admin's settings listed above should
not be used in elog.conf, even though Elog allows it.
-- Recai OktaÅŸ <roktas@omu.edu.tr> Sun, 20 Mar 2005 05:09:57 +0200
|
1001
|
Tue Mar 22 23:27:21 2005 |
| mark james | mark@majames.com | | Windows | 2.5.7-1 | Re: Unable to enter/edit time in user defined $date field? | Stefan,
Oh. OK. I will keep tuned. It would be quite useful to have.
Mark
> > I have defined a new field called "Record Date" to accept the dates from a
> > previous logging system. I am not too concerned with the timestamp
> > associated with these old imported entries. But for new entries...
> > There is no way I am able enter/edit the time into my new field. They all
> > show as having a time of 12:00. What am I doing wrong? Here is a portion of
> > my config
>
> Date is "date", and not "date-time" unfortunately. There is no way right now to
> enter a time. I plan however to add a new format "datetime", which allows that
> option. So stay tuned.
>
> - Stefan |
|