Projects
Kolab:16:Enterprise
chwala
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 47
View file
chwala.spec
Changed
@@ -37,7 +37,7 @@ %global _ap_sysconfdir %{_sysconfdir}/%{httpd_name} Name: chwala -Version: 0.5.12 +Version: 0.5.13 Release: 1%{?dist} Summary: Glorified WebDAV, done right
View file
chwala-0.5.12.tar.gz/lib/api/file_create.php -> chwala-0.5.13.tar.gz/lib/api/file_create.php
Changed
@@ -41,10 +41,11 @@ } } + $is_file = false; if (is_resource($this->args'content')) { $chunk = stream_get_contents($this->args'content', 1024000, 0); } - else if ($this->args'path') { + else if ($this->args'path' ?? null) { $chunk = $this->args'path'; $is_file = true; } @@ -60,8 +61,8 @@ $request = $this instanceof file_api_file_update ? 'file_update' : 'file_create'; $file = array( 'content' => $this->args'content', - 'path' => $this->args'path', - 'type' => rcube_mime::file_content_type($chunk, $this->args'file', $ctype, !$is_file), + 'path' => $this->args'path' ?? null, + 'type' => rcube_mime::file_content_type($chunk, $this->args'file' ?? null, $ctype, !$is_file), ); if (strpos($file'type', 'empty') !== false && $ctype) { @@ -80,7 +81,7 @@ $driver->$request($path, $file); - if (rcube_utils::get_boolean((string) $this->args'info')) { + if (rcube_utils::get_boolean((string) ($this->args'info' ?? null))) { return $driver->file_info($path); } }
View file
chwala-0.5.12.tar.gz/lib/api/file_info.php -> chwala-0.5.13.tar.gz/lib/api/file_info.php
Changed
@@ -34,8 +34,8 @@ // check Manticore support. Note: we don't use config->get('fileapi_manticore') // here as it may be not properly set if backend driver wasn't initialized yet $capabilities = $this->api->capabilities(false); - $manticore = $capabilities'MANTICORE'; - $wopi = $capabilities'WOPI'; + $manticore = $capabilities'MANTICORE' ?? null; + $wopi = $capabilities'WOPI' ?? null; // support file_info by session ID if (!isset($this->args'file') || $this->args'file' === '') {
View file
chwala-0.5.12.tar.gz/lib/api/file_list.php -> chwala-0.5.13.tar.gz/lib/api/file_list.php
Changed
@@ -36,7 +36,7 @@ } $params = array( - 'reverse' => rcube_utils::get_boolean((string) $this->args'reverse'), + 'reverse' => rcube_utils::get_boolean((string) ($this->args'reverse' ?? "")), ); if (!empty($this->args'sort')) {
View file
chwala-0.5.12.tar.gz/lib/api/quota.php -> chwala-0.5.13.tar.gz/lib/api/quota.php
Changed
@@ -31,14 +31,14 @@ { parent::handle(); - list($driver, $path) = $this->api->get_driver($this->args'folder'); + list($driver, $path) = $this->api->get_driver($this->args'folder' ?? null); $quota = $driver->quota($path); - if (!$quota'total') { + if (!($quota'total' ?? false)) { $quota'percent' = 0; } - else if ($quota'total') { + else if ($quota'total' ?? false) { if (!isset($quota'percent')) { $quota'percent' = min(100, round(($quota'used'/max(1, $quota'total'))*100)); }
View file
chwala-0.5.12.tar.gz/lib/drivers/kolab/kolab_file_storage.php -> chwala-0.5.13.tar.gz/lib/drivers/kolab/kolab_file_storage.php
Changed
@@ -179,6 +179,7 @@ // parse $host $a_host = parse_url($host); + $port = null; if ($a_host'host') { $host = $a_host'host'; $ssl = (isset($a_host'scheme') && in_array($a_host'scheme', array('ssl','imaps','tls'))) ? $a_host'scheme' : null; @@ -268,7 +269,7 @@ { $this->rc->plugins->exec_hook('startup'); - if ($_SESSION'user_id' || $user) { + if ($_SESSION'user_id' ?? false || $user) { // overwrite config with user preferences $this->rc->user = $user ? $user : new rcube_user($_SESSION'user_id'); $this->rc->config->set_user_prefs((array)$this->rc->user->get_prefs()); @@ -652,7 +653,7 @@ return array( 'name' => $file'name', - 'size' => (int) $file'size', + 'size' => (int) ($file'size' ?? null), 'type' => (string) $file'type', 'mtime' => file_utils::date_format($file'changed', $this->config'date_format', $this->config'timezone'), 'ctime' => file_utils::date_format($file'created', $this->config'date_format', $this->config'timezone'), @@ -702,11 +703,11 @@ continue; } - $filename = $params'prefix' . $folder_name . file_storage::SEPARATOR . $file'name'; + $filename = ($params'prefix' ?? null) . $folder_name . file_storage::SEPARATOR . ($file'name' ?? null); $result$filename = array( 'name' => $file'name', - 'size' => (int) $file'size', + 'size' => (int) ($file'size' ?? null), 'type' => (string) $file'type', 'mtime' => file_utils::date_format($file'changed', $this->config'date_format', $this->config'timezone'), 'ctime' => file_utils::date_format($file'created', $this->config'date_format', $this->config'timezone'), @@ -1003,7 +1004,7 @@ // This could probably be optimized by doing a direct // IMAP LIST command with prepared second argument, but // it would make caching not optimal - if ($params'level' > 0) { + if (($params'level' ?? 0) > 0) { $offset = isset($params'path') && strlen($params'path') ? strlen($params'path') + 1 : 0; foreach ($folders as $idx => $folder) { if (substr_count($folder, $separator, $offset) >= $params'level') { @@ -1592,7 +1593,7 @@ */ protected function from_file_object($file) { - if (isset($file'filename') && !$file'name') { + if (isset($file'filename') && !($file'name' ?? false)) { $file'name' = $file'filename'; } @@ -1626,7 +1627,7 @@ 'path' => $file'path', 'content' => $file'content', 'mimetype' => $file'type', - 'size' => $file'size', + 'size' => $file'size' ?? null, )); unset($file'name');
View file
chwala-0.5.12.tar.gz/lib/drivers/seafile/seafile_api.php -> chwala-0.5.13.tar.gz/lib/drivers/seafile/seafile_api.php
Changed
@@ -115,9 +115,6 @@ */ public static function http_request($config = array()) { - // load HTTP_Request2 - require_once 'HTTP/Request2.php'; - // remove unknown config, otherwise HTTP_Request will throw an error $config = array_intersect_key($config, array_flip(array( 'connect_timeout', 'timeout', 'use_brackets', 'protocol_version',
View file
chwala-0.5.12.tar.gz/lib/file_api.php -> chwala-0.5.13.tar.gz/lib/file_api.php
Changed
@@ -60,7 +60,7 @@ $this->request = strtolower($_GET'method'); // Check the session, authenticate the user - if (!$this->session_validate($this->request == 'authenticate', $_REQUEST'token')) { + if (!$this->session_validate($this->request == 'authenticate', $_REQUEST'token' ?? null)) { $this->session->destroy(session_id()); $this->session->regenerate_id(false); @@ -73,7 +73,7 @@ $_SESSION'env' = $this->env; // remember client API version - if (is_numeric($_GET'version')) { + if (is_numeric($_GET'version' ?? null)) { $_SESSION'version' = $_GET'version'; } @@ -124,7 +124,7 @@ // Single-document session? if (!($this instanceof file_api_wopi) - && ($doc_id = $_SESSION'document_session') + && ($doc_id = ($_SESSION'document_session' ?? null)) && (strpos($this->request, 'document') !== 0 || $doc_id != $_GET'id') ) { throw new Exception("Access denied", file_api_core::ERROR_UNAUTHORIZED); @@ -316,7 +316,7 @@ $request = 'document'; } - $request = $aliases$request ?: $request; + $request = $aliases$request ?? $request; require_once __DIR__ . "/api/common.php"; include_once __DIR__ . "/api/$request.php";
View file
chwala-0.5.12.tar.gz/lib/file_api_core.php -> chwala-0.5.13.tar.gz/lib/file_api_core.php
Changed
@@ -279,12 +279,12 @@ return $caps; } - if ($caps'MANTICORE') { + if ($caps'MANTICORE' ?? false) { $manticore = new file_manticore($this); $caps'MANTICORE_EDITABLE' = $manticore->supported_filetypes(true); } - if ($caps'WOPI') { + if ($caps'WOPI' ?? false) { $wopi = new file_wopi($this); $caps'WOPI_EDITABLE' = $wopi->supported_filetypes(true); }
View file
chwala-0.5.12.tar.gz/lib/file_manticore_api.php -> chwala-0.5.13.tar.gz/lib/file_manticore_api.php
Changed
@@ -59,8 +59,6 @@ */ public function __construct($base_url) { - require_once 'HTTP/Request2.php'; - $config = rcube::get_instance()->config; $this->debug = rcube_utils::get_boolean($config->get('fileapi_manticore_debug')); $this->base_url = rtrim($base_url, '/') . '/';
View file
chwala-0.5.12.tar.gz/lib/file_ui_api.php -> chwala-0.5.13.tar.gz/lib/file_ui_api.php
Changed
@@ -58,7 +58,6 @@ */ public function init() { - require_once 'HTTP/Request2.php'; $this->request = new HTTP_Request2(); self::configure($this->request); }
View file
chwala-0.5.12.tar.gz/lib/file_wopi.php -> chwala-0.5.13.tar.gz/lib/file_wopi.php
Changed
@@ -237,8 +237,6 @@ */ protected function http_request() { - require_once 'HTTP/Request2.php'; - $request = new HTTP_Request2(); // Configure connection options
View file
chwala.dsc
Changed
@@ -2,7 +2,7 @@ Source: chwala Binary: chwala Architecture: all -Version: 0.5.12-1~kolab1 +Version: 0.5.13-1~kolab1 Maintainer: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Uploaders: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Homepage: http://kolab.org/about/chwala/
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +chwala (0.5.13-1~kolab1) unsable; urgency=low + + * Release version 0.5.13 + + -- Christian Mollekopf <mollekopf@apheleia-it.ch> Wed, 1 Feb 2023 12:12:12 +0100 + chwala (0.5.12-1~kolab1) unsable; urgency=low * Release version 0.5.12
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
.