--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: konsolekalendar: confuses relative paths containing a slash with remote URL
- From: Bastian Kleineidam <calvin@debian.org>
- Date: Fri, 02 Nov 2007 20:06:32 +0100
- Message-id: <20071102190632.17176.63109.reportbug@treasure.calvinsplayground.de>
Package: konsolekalendar
Version: 4:3.5.8-1
Severity: normal
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
the --file option of konsolekalendar is buggy. It thinks it handles
a remote URL instead of a local file if the given path contains a slash:
$ konsolekalendar --file kalender/std.ics --view --date 2007-11-02 --time 00:00:00 --end-date 2007-11-02 --end-time 23:59:59
libkcal: ERROR: Can't read uid map file '/home/calvin/.kde/share/apps/kcal/uidmaps/remote_t0FzeVpdkg'
The attached patch fixes this by looking first for a local file, then
assuming it is remote.
Regards,
Bastian
- -- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-ck1treasure5 (PREEMPT)
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages konsolekalendar depends on:
ii kdelibs4c2a 4:3.5.8.dfsg.1-3 core libraries and binaries for al
ii libc6 2.6.1-6 GNU C Library: Shared libraries
ii libgcc1 1:4.2.2-3 GCC support library
ii libkcal2b 4:3.5.8-1 KDE calendaring library
ii libkdepim1a 4:3.5.8-1 KDE PIM library
ii libqt3-mt 3:3.3.7-9 Qt GUI Library (Threaded runtime v
ii libstdc++6 4.2.2-3 The GNU Standard C++ Library v3
konsolekalendar recommends no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHK3U3eBwlBDLsbz4RAnTXAJ9rBdohuxjueaVaUAvgTK7CDigL1ACglZA2
bByn2zBrVXx2Z4CqG4cYKm4=
=0tdn
-----END PGP SIGNATURE-----
--- kdepim-3.5.8/konsolekalendar/main.cpp.orig 2006-07-22 10:14:27.000000000 +0200
+++ kdepim-3.5.8/konsolekalendar/main.cpp 2007-11-02 19:57:51.425194213 +0100
@@ -664,14 +664,16 @@
variables.setCalendarFile( url.path() );
exists = QFile::exists( variables.getCalendarFile() );
remote = false;
- } else if ( !variables.getCalendarFile().contains( '/' ) ) {
- QFileInfo info( variables.getCalendarFile() );
- variables.setCalendarFile( info.absFilePath() );
- exists = QFile::exists( variables.getCalendarFile() );
- remote = false;
} else {
- exists = true; // really have no idea if the remote file exists
- remote = true;
+ QFileInfo info( variables.getCalendarFile() );
+ if (info.isFile()) {
+ variables.setCalendarFile( info.absFilePath() );
+ exists = QFile::exists( variables.getCalendarFile() );
+ remote = false;
+ } else {
+ exists = true; // really have no idea if the remote file exists
+ remote = true;
+ }
}
if ( create ) {
--- End Message ---