Projects
Kolab:16:Enterprise
chwala
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 53
View file
chwala.spec
Changed
@@ -38,7 +38,7 @@ %global upstream_version 0.5.14 Name: chwala -Version: 0.5.14.5 +Version: 0.5.14.6 Release: 1%{?dist} Summary: Glorified WebDAV, done right
View file
chwala-0.5.14.tar.gz/config/config.inc.php.dist
Changed
@@ -62,7 +62,7 @@ $config'fileapi_manticore' = null; // WOPI/Office service URL. Enables use of collaborative editor supporting WOPI. -// Note: this URL should be accessible from Chwala host and Roundcube host as well. +// Note: this URL must be accessible from the Chwala host. $config'fileapi_wopi_office' = null; // Name of the user interface skin. @@ -73,6 +73,9 @@ // the UI location is used with addition of /api/ suffix. $config'file_api_url' = ''; +// Optional server variant of file_api_url if the wopi service needs to connect via an internal url back to chwala. +$config'file_api_server_url' = null; + // Type of Chwala cache. Supported values: 'db', 'apc' and 'memcache'. // Note: This is only for some additional data like WOPI capabilities. $config'fileapi_cache' = 'db';
View file
chwala-0.5.14.tar.gz/lib/drivers/kolab/kolab_file_storage.php
Changed
@@ -134,8 +134,8 @@ public function auth_info() { return array( - 'username' => $this->config'username' ?: $_SESSION'username', - 'password' => $this->config'password' ?: $this->rc->decrypt($_SESSION'password'), + 'username' => ($this->config'username' ?? null) ?: $_SESSION'username', + 'password' => ($this->config'password' ?? null) ?: $this->rc->decrypt($_SESSION'password'), ); } @@ -1523,7 +1523,7 @@ throw new Exception("Missing folder name", file_storage::ERROR); } - $folder = $this->get_folder_object($this->folder_in($folder_name)); + $folder = $this->get_folder_object($folder_name); if ($cache && !empty($this->icache$original_name)) { return $this->icache$original_name;
View file
chwala-0.5.14.tar.gz/lib/drivers/kolabfiles/kolabfiles_file_storage.php
Changed
@@ -62,8 +62,7 @@ { $this->rc = rcube::get_instance(); $this->config = - 'baseuri' => $this->rc->config->get('fileapi_kolabfiles_baseuri', 'https://' . $_SERVER"HTTP_HOST" . '/api/'), - 'host' => $this->rc->config->get('fileapi_kolabfiles_host', $_SERVER"HTTP_HOST"), + 'baseuri' => $this->rc->config->get('fileapi_kolabfiles_baseuri', 'https://' . $_SERVER"HTTP_HOST" . '/api/') ; } @@ -963,6 +962,12 @@ throw new Exception("Autocomplete not implemented", file_storage::ERROR_UNSUPPORTED); } + private static function getHost($url) + { + // Remove protocol prefix and path, we work with host only + return preg_replace('#(^https?://|/.*$)#i', '', $url); + } + /** * Convert file/folder path into a global URI. * @@ -973,8 +978,7 @@ */ public function path2uri($path) { - // Remove protocol prefix and path, we work with host only - $host = preg_replace('#(^https?://|/.*$)#i', '', $this->config'host'); + $host = self::getHost($this->config'baseuri'); if (!is_string($path) || !strlen($path)) { $user = $_SESSION$this->title . 'user'; @@ -1004,7 +1008,7 @@ $user = rawurldecode($matches1); $host = $matches2; $path = file_utils::decode_path($matches3); - $c_host = preg_replace('#(^https?://|/.*$)#i', '', $this->config'host'); + $c_host = self::getHost($this->config'baseuri'); if (strlen($path)) { list($file, $repo_id, $collection) = $this->find_collection($path, true);
View file
chwala-0.5.14.tar.gz/lib/drivers/seafile/seafile_file_storage.php
Changed
@@ -306,7 +306,7 @@ if ($this->config'username') { $metadata'form_values' = array( 'host' => $this->config'host', - 'username' => $this->config'username', + 'username' => $this->config'username' ?? null, ); } @@ -563,8 +563,8 @@ 'name' => $file'name', 'size' => (int) $file'size', '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'), + 'mtime' => file_utils::date_format($file'changed' ?? null, $this->config'date_format', $this->config'timezone'), + 'ctime' => file_utils::date_format($file'created' ?? null, $this->config'date_format', $this->config'timezone'), 'modified' => $file'changed' ? $file'changed'->format('U') : 0, 'created' => $file'created' ? $file'created'->format('U') : 0, ); @@ -637,8 +637,8 @@ 'name' => $file'name', 'size' => (int) $file'size', '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'), + 'mtime' => file_utils::date_format($file'changed' ?? null, $this->config'date_format', $this->config'timezone'), + 'ctime' => file_utils::date_format($file'created' ?? null, $this->config'date_format', $this->config'timezone'), 'modified' => $file'changed' ? $file'changed'->format('U') : 0, 'created' => $file'created' ? $file'created'->format('U') : 0, );
View file
chwala-0.5.14.tar.gz/lib/file_wopi.php
Changed
@@ -97,8 +97,10 @@ return; } - $office_url = rtrim($metadata'urlsrc', ' /?'); // collabora - $service_url = $this->api->api_url() . '/wopi/files/' . $id; + $office_url = rtrim($metadata'urlsrc', ' /?'); // collabora + //Configurable if e.g. collabora does not connect via the public url + $service_url = $this->rc->config->get('file_api_server_url', $this->api->api_url()); + $service_url = rtrim($service_url, ' /') . '/wopi/files/' . $id; // @TODO: Parsing and replacing placeholder values // https://wopi.readthedocs.io/en/latest/discovery.html#action-urls
View file
chwala.dsc
Changed
@@ -2,7 +2,7 @@ Source: chwala Binary: chwala Architecture: all -Version: 0.5.14.5-1~kolab1 +Version: 0.5.14.6-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,4 +1,4 @@ -chwala (0.5.14.5-1~kolab1) unsable; urgency=low +chwala (0.5.14.6-1~kolab1) unsable; urgency=low * Release version 0.5.14
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
.