Enhancement #3022
OwnCloud trusted domains
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-owncloud | |||
Target version: | v6.6 | |||
Resolution: | NEEDINFO: | No |
Description
If you try to access OwnCloud
from web page or through the pc client using a DNS name that is not included among OwnCloud trusted domains (see /var/www/html/owncloud/config/config.php
) you receive an error (see attachment).
Owncloud
configuration should permit to add new trusted domains.
From "config.php"
:
... trusted_domains' => array ( 0 => '192.168.1.1', 1 => 'myowncloud.test.lan', ), ...
As workaround you can manually add other domains with the syntax:
... trusted_domains' => array ( 0 => '192.168.1.1', 1 => 'myowncloud.test.lan', 2 => 'other.example.org', ), ...
but all changes will be lost the first time the "nethserver-owncloud-update"
event is triggered.
- nethserver-owncloud-1.1.2-1.ns6.noarch
- owncloud-3rdparty-7.0.4-13.1.noarch
- owncloud-7.0.4-13.1.noarch
Related issues
History
#1 Updated by Nicola Rauso over 6 years ago
- Related to Bug #3021: OwnCloud update event dirties configuration file added
#2 Updated by Nicola Rauso over 6 years ago
- Description updated (diff)
#3 Updated by Filippo Carletti over 6 years ago
- Target version set to ~FUTURE
#4 Updated by Giacomo Sanchietti about 6 years ago
- Category set to nethserver-owncloud
#5 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from NEW to TRIAGED
- Target version changed from ~FUTURE to v6.6
- % Done changed from 0 to 20
Add a new TrustedDomain
prop.
The prop can contain a list of IPs or hostnames separated by commas.
The list must be added to trusted_domains
option inside ownCloud configuration file.
#6 Updated by Alessandro Polidori about 6 years ago
- Related to Feature #3191: Update ownCloud to 7.0.6 version added
#7 Updated by Alessandro Polidori about 6 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Alessandro Polidori
- % Done changed from 20 to 30
#8 Updated by Alessandro Polidori about 6 years ago
I've created new db key and prop:
[root@alenethserver ~]# config show owncloud owncloud=configuration TrustedDomains=
#9 Updated by Alessandro Polidori about 6 years ago
- Status changed from ON_DEV to MODIFIED
- Assignee deleted (
Alessandro Polidori) - % Done changed from 30 to 60
#10 Updated by Alessandro Polidori about 6 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
Repo: nethserver-testing
Packages:
nethserver-owncloud-1.1.3-1.2git5f2a121.ns6.noarch.rpm owncloud-3rdparty-7.0.6-2.2.noarch.rpm owncloud-7.0.6-2.2.noarch.rpm
Test
- Do a clean installation
- cat /var/www/html/owncloud/config/config.php
- config setprop owncloud TrustedDomains pippo,paperino.pluto.it
- signal-event nethserver-owncloud-update
- cat /var/www/html/owncloud/config/config.php
- verify that trusted domains contains also "pippo" and "paperino.pluto.it"
- config setprop owncloud TrustedDomains ""
- signal-event nethserver-owncloud-update
- cat /var/www/html/owncloud/config/config.php
- verify that trusted domains does not contain neither "pippo" nor "paperino.pluto.it" anymore
- Verify the previous also with update instead of clean installation
#11 Updated by Edoardo Spadoni about 6 years ago
- Assignee set to Edoardo Spadoni
#12 Updated by Edoardo Spadoni about 6 years ago
- Status changed from ON_QA to VERIFIED
- % Done changed from 70 to 90
Test case with clean or updated installation is working.
#13 Updated by Edoardo Spadoni about 6 years ago
- Assignee deleted (
Edoardo Spadoni)
#14 Updated by Alessandro Polidori about 6 years ago
- Related to Task #3206: Add documentation section about how to add custom trusted domain added
#15 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
- owncloud-3rdparty-7.0.6-2.2.noarch.rpm
- owncloud-7.0.6-2.2.noarch.rpm
- nethserver-owncloud-1.1.4-1.ns6.noarch.rpm