Projects
Kolab:16
chwala
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 50
View file
buildtarball.sh
Added
@@ -0,0 +1,22 @@ +#!/bin/bash + +set -e + +VERSION=0.5.14 +GIT_REF=master +NAME=chwala-$VERSION + +ROOT_DIR=$(pwd) + +rm -Rf /tmp/$NAME +mkdir /tmp/$NAME +cd /tmp/$NAME + +rm -f $NAME.tar.gz + -d "$NAME" && rm -rf "$NAME" +git clone --branch master ssh://git@git.kolab.org/diffusion/rC/chwala.git $NAME +pushd $NAME +git reset --hard $GIT_REF +git archive --prefix=$NAME/ -o "$ROOT_DIR/$NAME.tar.gz" HEAD + +cd "$PWD"
View file
chwala-0.5.14.tar.gz/lib/api/document.php
Changed
@@ -131,7 +131,7 @@ $document = new file_document($this->api); $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.14.tar.gz/lib/api/file_create.php
Changed
@@ -53,7 +53,7 @@ $chunk = $this->args'content'; } - $ctype = $this->args'content-type'; + $ctype = $this->args'content-type' ?? ''; if ($ctype && !preg_match('/^a-z_-+\/a-z._-+$/', $ctype)) { $ctype = ''; } @@ -81,7 +81,7 @@ $driver->$request($path, $file); - if (rcube_utils::get_boolean((string) ($this->args'info' ?? null))) { + if (rcube_utils::get_boolean((string) ($this->args'info' ?? ''))) { return $driver->file_info($path); } }
View file
chwala-0.5.14.tar.gz/lib/api/file_get.php
Changed
@@ -45,7 +45,7 @@ } $params = array( - 'force-download' => rcube_utils::get_boolean((string) $this->args'force-download' ?? ""), + 'force-download' => rcube_utils::get_boolean((string) ($this->args'force-download' ?? '')), 'force-type' => $this->args'force-type' ?? null, 'head' => ($this->args'head' ?? null) ?: $method == 'HEAD', );
View file
chwala-0.5.14.tar.gz/lib/api/file_info.php
Changed
@@ -70,7 +70,7 @@ // 2 - Chwala viewer exists // 4 - Editor exists (manticore/wopi) - if (rcube_utils::get_boolean((string) $this->args'viewer')) { + if (rcube_utils::get_boolean((string) ($this->args'viewer' ?? ''))) { if ($this->args'file' !== null) { $this->file_viewer_info($info); }
View file
chwala-0.5.14.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.14.tar.gz/lib/api/file_move.php
Changed
@@ -48,7 +48,7 @@ $this->args'file' = array($this->args'file' => $this->args'new'); } - $overwrite = rcube_utils::get_boolean((string) $this->args'overwrite'); + $overwrite = rcube_utils::get_boolean((string) ($this->args'overwrite' ?? '')); $request = $this instanceof file_api_file_copy ? 'file_copy' : 'file_move'; $errors = array();
View file
chwala-0.5.14.tar.gz/lib/api/folder_auth.php
Changed
@@ -71,7 +71,7 @@ $result = array('folder' => $this->args'folder'); // get list of folders if requested - if (rcube_utils::get_boolean((string) $this->args'list')) { + if (rcube_utils::get_boolean((string) ($this->args'list' ?? ''))) { $params = $this->folder_list_params(); $params'path' = $path; $result'list' = $this->folder_list($driver, $params, true);
View file
chwala-0.5.14.tar.gz/lib/api/lock_list.php
Changed
@@ -31,7 +31,7 @@ { parent::handle(); - $child_locks = rcube_utils::get_boolean($this->args'child_locks'); + $child_locks = rcube_utils::get_boolean($this->args'child_locks' ?? ''); list($driver, $uri) = $this->api->get_driver($this->args'uri');
View file
chwala-0.5.14.tar.gz/lib/drivers/kolab/kolab_file_storage.php
Changed
@@ -50,6 +50,12 @@ protected $icache = array(); /** + * @var ?object + */ + protected $lock_db; + + + /** * Class constructor */ public function __construct()
View file
chwala-0.5.14.tar.gz/lib/file_locks.php
Changed
@@ -101,7 +101,9 @@ */ public function lock_list($uri, $child_locks = false) { - if ($this->icache'uri' == $uri && $this->icache'child' == $child_locks) { + if (isset($this->icache'uri') && $this->icache'uri' == $uri + && isset($this->icache'child') && $this->icache'child' == $child_locks + ) { return $this->icache'list'; } @@ -136,7 +138,7 @@ // this path is already cached, extract locks from cached result // we do this because it is a common scenario to request // for lock on every file/folder in specified location - if ($this->icache'root_path' == $root_path) { + if (isset($this->icache'root_path') && $this->icache'root_path' == $root_path) { $length = strlen($root_path); foreach ($this->icache'list' as $lock) { if ($lock'depth' != 0 && strlen($lock'token') <= $length) {
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
.