Bug 115595 - open document in readonly mode if extension in uppercase letters
Summary: open document in readonly mode if extension in uppercase letters
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Andras Timar
URL:
Whiteboard: target:6.1.0 target:6.0.2
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-09 19:10 UTC by Philippe Hemmel
Modified: 2018-02-27 11:48 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Hemmel 2018-02-09 19:10:03 UTC
## Steps to reproduce
* In Nextcloud, create a document test.ODS (whatever the extension : XLS, ODT...)
* click on it to edit it with Collabora Online

## Actual behaviour

* the document is open in readonly mode

## Expected behaviour

* the document should be open in edit mode

Nextcloud (richdocuments) passes the right variable "edit".
Rename the document "test.ods" and it works

See here : https://github.com/LibreOffice/online/blob/master/wsd/DocumentBroker.cpp#L474

## General server configuration

**Operating system:** Linux 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64

**Webserver:** Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/7.1.11 (apache2handler)

**Database:** mysql 5.5.56

**PHP version:** 7.1.11
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, intl, json, ldap, exif, mcrypt, mysqlnd, PDO, apcu, posix, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, mysqli, pdo_mysql, pdo_sqlite, wddx, xmlreader, apc, smbclient, zip, Phar, libsmbclient, Zend OPcache

**LibreOffice Online version:** Collabora Online 2.1.5

**Nextcloud version:** 12.0.4 - 12.0.4.3

** richdocuments version:**  1.12.40
Comment 1 blendergeek 2018-02-14 18:05:35 UTC
Confirmed on CODE 3.0.0, Nextcloud 13.0.0, Rich Documents 1.12.40, Apache 2.4.8, on Ubuntu Server 16.04.3.

I am now marking this bug as NEW.
Comment 2 Commit Notification 2018-02-19 17:16:21 UTC
Andras Timar committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/online/commit/?id=6a914ecbb95e565de51e33e4daeab3c78baeab2b

tdf#115595 open editable documents with upper case or mixed case file extensions in edit mode
Comment 3 Commit Notification 2018-02-27 11:48:33 UTC
Andras Timar committed a patch related to this issue.
It has been pushed to "libreoffice-6-0":

http://cgit.freedesktop.org/libreoffice/online/commit/?id=dadaf95f08770208f084dce7b54fc251a4bdfe54&h=libreoffice-6-0

tdf#115595 open editable documents with upper case or mixed case file extensions in edit mode