Projects
Kolab:16:TestingLinked
iRony
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
iRony.spec
Changed
@@ -32,7 +32,7 @@ Name: iRony Version: 0.4 -Release: 0.2.git%{?dist} +Release: 0.20160321.git%{?dist} Summary: DAV for Kolab Groupware Group: Applications/Internet @@ -40,7 +40,7 @@ URL: http://kolab.org # From f7e4e0e36b62f10d2570d6fccef686c3e1c43af0 -Source0: http://mirror.kolabsys.com/pub/releases/iRony-%{version}.tar.gz +Source0: iRony-0.4.tar.gz Source1: iRony.conf Source2: iRony.logrotate
View file
add-sabre21-path-for-debian.patch
Added
@@ -0,0 +1,16 @@ +diff -u iRony-0.4.orig/composer.json-dist iRony-0.4/composer.json-dist +--- iRony-0.4.orig/composer.json-dist 2016-03-13 23:48:10.000000000 +0100 ++++ iRony-0.4/composer.json-dist 2016-12-07 10:22:02.000000000 +0100 +@@ -11,6 +11,7 @@ + "": "/usr/share/pear/" + }, + "psr-4": { ++ "Sabre\\": "/usr/share/php/sabre21/", + "": "/usr/share/php/" + } + } +Common subdirectories: iRony-0.4.orig/config and iRony-0.4/config +Common subdirectories: iRony-0.4.orig/doc and iRony-0.4/doc +Common subdirectories: iRony-0.4.orig/lib and iRony-0.4/lib +Common subdirectories: iRony-0.4.orig/public_html and iRony-0.4/public_html +Common subdirectories: iRony-0.4.orig/test and iRony-0.4/test
View file
debian.changelog
Changed
@@ -1,4 +1,17 @@ -irony (0.4~dev20150721-0~kolab1) unstable; urgency=low +irony (0.4~dev20160321-0~kolab3) unstable; urgency=low + + * Updated Autoloader Composer Path + + -- Daniel Hoffend <dh@dotlan.net> Wed, 06 Dec 2016 23:23:00 +0100 + +irony (0.4~dev20160321-0~kolab2) unstable; urgency=low + + * Changed Requirements from sabre-vobject to sabre-vobject-3, sabre-av + to sabre-dav-2.1 and sabre-http to sabre-http-3 + + -- Daniel Hoffend <dh@dotlan.net> Fri, 02 Dec 2016 00:23:00 +0100 + +irony (0.4~dev20160321-0~kolab1) unstable; urgency=low * Release of version 0.4.0
View file
debian.control
Changed
@@ -3,7 +3,7 @@ Priority: extra Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Uploaders: Paul Klos <kolab@klos2day.nl> -Build-Depends: debhelper (>= 8) +Build-Depends: debhelper (>= 8), composer, php-sabre-dav-2.1 (>= 2.1.3) Standards-Version: 3.9.3 Homepage: http://www.kolab.org/ Vcs-Browser: http://git.kolabsys.com/apt/iRony/ @@ -14,10 +14,14 @@ Depends: apache2, chwala, - libapache2-mod-php5, - php5, + libapache2-mod-php5 | libapache2-mod-php, + php5 | php, + php-sabre-dav-2.1 (>= 2.1.3), + php-sabre-http-3 (>= 3.0.5), + php-sabre-event (>= 1.0.1), + php-sabre-vobject-3 (>= 3.2.4), roundcubemail, roundcubemail-plugins-kolab (>= 3.1.12), - ${misc:Depends} + ${misc:Depends} Description: Kolab Groupware DAV Access iRony is the DAV protocol access layer to Kolab Groupware
View file
debian.rules
Changed
@@ -11,6 +11,10 @@ mkdir -p $HOME/.composer/ echo '{}' > $HOME/.composer/composer.json composer.sh -vvv dumpautoload --optimize + sed -i -e "s|.baseDir . '/../../../share|'/usr/share|" $(CURDIR)/vendor/composer/autoload_psr4.php + sed -i -e "s|.baseDir . '/../../../share|'/usr/share|" $(CURDIR)/vendor/composer/autoload_namespaces.php + sed -i -e "s|.baseDir . '/../../../share|'/usr/share|" $(CURDIR)/vendor/composer/autoload_classmap.php + #sed -i -e "s|__DIR__ . '/../..' . '/../../../share|'/usr/share|" $(CURDIR)/vendor/composer/autoload_static.php mkdir -p $(CURDIR)/debian/irony/etc/iRony/ cp -a $(CURDIR)/debian/iRony.conf $(CURDIR)/debian/irony/etc/iRony/apache.conf cp -a config/dav.inc.php.sample $(CURDIR)/debian/irony/etc/iRony/dav.inc.php
View file
debian.series
Changed
@@ -0,0 +1,1 @@ +add-sabre21-path-for-debian.patch -p1
View file
iRony-0.4.tar.gz/lib/Kolab/CardDAV/ContactsBackend.php
Changed
@@ -77,6 +77,19 @@ 'assistant' => 'assistant', ); + private $phonetypes = array( + 'main' => 'voice', + 'homefax' => 'home,fax', + 'workfax' => 'work,fax', + 'mobile' => 'cell', + 'other' => 'textphone', + ); + + private $improtocols = array( + 'jabber' => 'xmpp', + ); + + /** * Read available contact folders from server */ @@ -111,7 +124,6 @@ return $this->sources; } - /** * Getter for a kolab_storage_folder representing the address book for the given ID * @@ -134,7 +146,6 @@ } } - /** * Returns the list of addressbooks for a specific user. * @@ -541,7 +552,6 @@ return false; } - /** * Set User-Agent string of the connected client */ @@ -562,7 +572,6 @@ } } - /** * Find an object and the containing folder by UID * @@ -610,26 +619,15 @@ /********** Data conversion utilities ***********/ - private $phonetypes = array( - 'main' => 'voice', - 'homefax' => 'home,fax', - 'workfax' => 'work,fax', - 'mobile' => 'cell', - 'other' => 'textphone', - ); - - private $improtocols = array( - 'jabber' => 'xmpp', - ); - - /** * Parse the given VCard string into a hash array kolab_format_contact can handle * * @param string VCard data block + * @param string Contact UID + * * @return array Hash array with contact properties or null on failure */ - private function parse_vcard($cardData, $uid) + public function parse_vcard($cardData, $uid = null) { try { // use already parsed object @@ -658,7 +656,6 @@ return null; } - /** * Build a valid VCard format block from the given contact record * @@ -821,10 +818,8 @@ if (!empty($contact'photo')) { $vc->PHOTO = $contact'photo'; - $vc->PHOTO'ENCODING' = 'B'; - if ($v4) { - $vc->PHOTO'TYPE' = strtoupper(substr(rcube_mime::image_content_type($contact'photo'), 6)); - } + $vc->PHOTO'ENCODING' = 'b'; + $vc->PHOTO'TYPE' = strtoupper(substr(rcube_mime::image_content_type($contact'photo'), 6)); } // add custom properties @@ -1097,7 +1092,7 @@ // translate custom properties with a matching prefix to labelled items foreach ((array)$contact'x-custom' as $prop) { $name = $prop0; - if (strpos($name, $propname) === 0) { + if ($vc->{$name} && strpos($name, $propname) === 0) { $label = strtolower(substr($name, strlen($propname)+1)); $this->_replace_with_labelled_prop($vc, $name, $propname, $label); } @@ -1168,5 +1163,4 @@ { return sprintf('"%s-%d"', substr(md5($contact'uid'), 0, 16), $contact'_msguid'); } - }
View file
iRony-0.4.tar.gz/test/Resource/CardDAV/vcardput/6.vcf
Changed
@@ -6,7 +6,7 @@ TEL;TYPE=WORK:777-777-7777 TEL;TYPE=CELL:8888888888 ADR;TYPE=WORK:;;1234 Golly Street;Sunnyside;CA;99999;USA -PHOTO;BASE64: +PHOTO;ENCODING=b: /9j/4AAQSkZJRgABAQAAAQABAAD/7QA8UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAB8cAVoAAx sl RxwCAAACAAIcAhkAC1Bob3RvIEJvb3RoAP/iG6hJQ0NfUFJPRklMRQABAQAAG5hhcHBsAgA AAG1u dHJSR0IgWFlaIAfaAAEAEwAJADEABGFjc3BBUFBMAAAAAAAAAAAAAAAAAAAAAAAAAAAA
View file
iRony-0.4.tar.gz/test/Unit
Added
+(directory)
View file
iRony-0.4.tar.gz/test/Unit/CardDAV
Added
+(directory)
View file
iRony-0.4.tar.gz/test/Unit/CardDAV/ContactsBackend.php
Added
@@ -0,0 +1,28 @@ +<?php + +use Kolab\CardDAV\ContactsBackend; + +class ContactsBackendTest extends PHPUnit_Framework_TestCase +{ + function setUp() + { + } + + + /** + * Test vCard PHOTO (T1082) + */ + function test_T1082() + { + $backend = new ContactsBackend; + $contact = array( + 'uid' => '', + 'name' => 'Test', + 'photo' => base64_decode('R0lGODlhDwAPAIAAAMDAwAAAACH5BAEAAAAALAAAAAAPAA8AQAINhI+py+0Po5y02otnAQA7'), + ); + + $vcard = $backend->to_vcard($contact); + + $this->assertRegexp('/PHOTO;ENCODING=b;TYPE=GIF:R0l/', $vcard); + } +}
View file
iRony-0.4.tar.gz/test/bootstrap.php
Added
@@ -0,0 +1,48 @@ +<?php + +/** + * iRony, the Kolab WebDAV/CalDAV/CardDAV Server + * + * @author Thomas Bruederli <bruederli@kolabsys.com> + * @author Aleksander Machniak <machniak@kolabsys.com> + * + * Copyright (C) 2013-2016, Kolab Systems AG <contact@kolabsys.com> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +if (php_sapi_name() != 'cli') { + die("Not in shell mode (php-cli)"); +} + +// define some environment variables used throughout the app and libraries +define('TESTS_DIR', __DIR__ . '/'); +define('KOLAB_DAV_ROOT', realpath('../')); +define('KOLAB_DAV_VERSION', '0.4-dev'); +define('KOLAB_DAV_START', microtime(true)); + +define('RCUBE_INSTALL_PATH', KOLAB_DAV_ROOT . '/'); +define('RCUBE_CONFIG_DIR', KOLAB_DAV_ROOT . '/config/'); +define('RCUBE_PLUGINS_DIR', KOLAB_DAV_ROOT . '/lib/plugins/'); + +// suppress error notices +ini_set('error_reporting', E_ALL &~ E_NOTICE &~ E_STRICT); + +// use composer's autoloader for dependencies +$loader = require_once(KOLAB_DAV_ROOT . '/vendor/autoload.php'); +$loader->set('Kolab', array(KOLAB_DAV_ROOT . '/lib')); // register iRony namespace(s) +$loader->setUseIncludePath(true); // enable include_path to load PEAR classes from their default location + +// load the Roundcube framework with its autoloader +require_once KOLAB_DAV_ROOT . '/lib/Roundcube/bootstrap.php';
View file
iRony-0.4.tar.gz/test/phpunit.xml
Added
@@ -0,0 +1,9 @@ +<phpunit backupGlobals="false" + bootstrap="bootstrap.php" + colors="true"> + <testsuites> + <testsuite name="All Tests"> + <file>Unit/CardDAV/ContactsBackend.php</file> + </testsuite> + </testsuites> +</phpunit>
View file
iRony.dsc
Changed
@@ -2,14 +2,14 @@ Source: irony Binary: irony Architecture: all -Version: 0.4~dev20150721-0~kolab1 +Version: 0.4~dev20160321-0~kolab3 Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Uploaders: Paul Klos <kolab@klos2day.nl> Homepage: http://www.kolab.org/ Standards-Version: 3.9.3 Vcs-Browser: http://git.kolabsys.com/apt/iRony/ Vcs-Git: git://git.kolabsys.com/git/apt/iRony -Build-Depends: debhelper (>= 8), composer +Build-Depends: debhelper (>= 8), composer, php-sabre-dav-2.1 (>= 2.1.3) Package-List: iRony deb admin extra Files:
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.