[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#278880: korganizer: Hexadecimal character conversion in attachement URIs not handled properly



Package: korganizer
Version: 4:3.3.0-3
Severity: normal


When creating an attachment to an event/task, special characters in the 
URI are converted to hexadecimal form (%xx). When the URI is editted, 
the hex are not converted back to alpha-numeric, and the % sign is also 
converted to hex. See the "Steps to reproduce" below for a better 
expanation.

Steps to reproduce:
1) Click on the "Attachments" tab in the "Edit Event" or "Edit To-Do" 
window.
2) Click "Add..." and enter a URI with a space or other non-standard 
character. For example, "file://path/to/my file" (does not have to be a 
real file).
3) Press "OK"

* Result: The program replaces the space with the hex code "%20". So 
the URI above becomes, "file://path/to/my%20file". This is messy and 
confusing but correct. Perhaps the URI should be converted to 
human-readable form before display.

4) Select the new attachment and press "Edit"
* The spaces in the edit box are replaced with "%20".
5) Select "OK" again.
* Expected: The "%20" should be converted to a space or remain "%20"
* Result: The "%" sign is converted to hex (%25). URI becomes corrupt: 
"file://path/to/my%2520file". Repeating steps 4-5 makes the problem 
worse by converting the % sign again.

Proposed solution:
Store URI with hex characters internally, but convert to alpha-numeric 
when displaying in the list of attachments or editting.


** Note: I have filed a bug with bugs.kde.org at
<http://bugs.kde.org/show_bug.cgi?id=92363>


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-rc3.20041009
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages korganizer depends on:
ii  kdelibs4                  4:3.3.0-2      KDE core libraries
ii  ktnef                     4:3.3.0-3      KDE TNEF viewer
ii  libart-2.0-2              2.3.16-6       Library of functions for 2D graphi
ii  libc6                     2.3.2.ds1-18   GNU C Library: Shared libraries an
ii  libgcc1                   1:3.4.2-3      GCC support library
ii  libice6                   4.3.0.dfsg.1-8 Inter-Client Exchange library
ii  libidn11                  0.5.2-3        GNU libidn library, implementation
ii  libkcal2                  4:3.3.0-3      KDE calendaring library
ii  libkdepim1                4:3.3.0-3      KDE PIM library
ii  libkgantt0                4:3.3.0-3      KDE gantt charting library
ii  libkpimexchange1          4:3.3.0-3      KDE PIM Exchange library
ii  libkpimidentities1        4:3.3.0-3      KDE PIM user identity information 
ii  libpng12-0                1.2.7-1        PNG library - runtime
ii  libqt3c102-mt             3:3.3.3-4.1    Qt GUI Library (Threaded runtime v
ii  libsm6                    4.3.0.dfsg.1-8 X Window System Session Management
ii  libstdc++5                1:3.3.5-2      The GNU Standard C++ Library v3
ii  libx11-6                  4.3.0.dfsg.1-8 X Window System protocol client li
ii  libxext6                  4.3.0.dfsg.1-8 X Window System miscellaneous exte
ii  libxrender1               0.8.3-7        X Rendering Extension client libra
ii  perl                      5.8.4-3        Larry Wall's Practical Extraction 
ii  xlibs                     4.3.0.dfsg.1-7 X Window System client libraries m
ii  zlib1g                    1:1.2.2-1      compression library - runtime

-- no debconf information



Reply to: