Package: jspwiki Severity: important Tags: patch Upgrading JSPWiki unexpectedly changes my configuration. In particular, an upgrade seems to change jspwiki.pageProvider to FileSystemProvider when I had previously set VersioningFileProvider. When this happens, it usually takes a few weeks for my users to notice that all of their recently-updated pages show "updated by Unknown" on the bottom instead of their name, and then it causes a lot of confusion.
I dug around in the package, and I think this is possibly happening
because of a bug in the postinst. The postinst seems to be trying to
implement:
if jspwiki.properties has "This file is managed by Debconf" on line 1
get out now and don't make any changes
However, my properties file does not have this string on line 1, and yet
the postinst seems to change the properties file anyway.
The postinst uses this code to accomplish its check:
if { head -1 /etc/jspwiki/jspwiki.properties | grep -q "This file is managed
by Debconf"; }
then
exit 0
fi
I am not familiar with the {} shell syntax. I would have expected to
see something like this instead:
head -1 /etc/jspwiki/jspwiki.properties | grep -q "This file is managed by
Debconf"
if [[ $? != 0 ]];
then
exit 0
fi
Anyway, I don't really care how this gets fixed - I just want to make
sure that the next time I upgrade jspwiki, it doesn't change the
pageProvider.
Thanks,
KEN
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=en, LC_CTYPE=en_US (charmap=ISO-8859-1) (ignored: LC_ALL set to
en_US)
--
Kenneth J. Pronovici <[EMAIL PROTECTED]>
pgpxu66UIOhW1.pgp
Description: PGP signature

