Package: owncloud
Version: 5.0.14.a+dfsg-1~bpo70+2
Severity: normal
Forwarded: https://github.com/owncloud/contacts/issues/295
Tags: patch fixed-upstream
ownCloud's contacts app has a bug in its import error handling, resulting
in errors not being displayed. Sorry, I encountered this a while ago and
didn't save the exact messages/symptoms, but
https://github.com/owncloud/contacts/issues/295 is the corresponding bug in
ownCloud 6. The same patch seems appropriate for oC 5.
Regards,
S
-- System Information:
Debian Release: jessie/sid
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'unstable'), (500, 'testing'),
(500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- /usr/share/owncloud/apps/contacts/lib/controller/importcontroller.php.orig 2014-01-12 18:59:24.000000000 +0000
+++ /usr/share/owncloud/apps/contacts/lib/controller/importcontroller.php 2014-01-12 18:59:32.000000000 +0000
@@ -38,6 +38,7 @@
$file=$request->files['file'];
if($file['error'] !== UPLOAD_ERR_OK) {
+ $error = $file['error'];
$errors = array(
UPLOAD_ERR_OK => App::$l10n->t("There is no error, the file uploaded with success"),
UPLOAD_ERR_INI_SIZE => App::$l10n->t("The uploaded file exceeds the upload_max_filesize directive in php.ini")