Enhancement #3022

OwnCloud trusted domains

Added by Nicola Rauso almost 6 years ago. Updated over 5 years ago.

Status:CLOSEDStart date:
Priority:NormalDue 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.

Installed packages:
  • nethserver-owncloud-1.1.2-1.ns6.noarch
  • owncloud-3rdparty-7.0.4-13.1.noarch
  • owncloud-7.0.4-13.1.noarch

ownCloud.png - OwnCloud trusted domains error (54.6 KB) Nicola Rauso, 02/04/2015 06:36 AM


Related issues

Related to NethServer 6 - Bug #3021: OwnCloud update event dirties configuration file CLOSED
Related to NethServer 6 - Feature #3191: Update ownCloud to 7.0.6 version CLOSED
Related to NethServer 6 - Task #3206: Add documentation section about how to add custom trusted... CLOSED

Associated revisions

Revision d34c0e12
Added by Alessandro Polidori over 5 years ago

Add custom trusted domains. Refs #3022

Revision 01081284
Added by Alessandro Polidori over 5 years ago

Update oc to v7.0.6 & add customer trusted domains. Refs #3191 #3022

Revision 5f2a1219
Added by Alessandro Polidori over 5 years ago

Update oc to v7.0.6 & add custom trusted domains. Refs #3191 #3022

History

#1 Updated by Nicola Rauso almost 6 years ago

  • Related to Bug #3021: OwnCloud update event dirties configuration file added

#2 Updated by Nicola Rauso almost 6 years ago

  • Description updated (diff)

#3 Updated by Filippo Carletti over 5 years ago

  • Target version set to ~FUTURE

#4 Updated by Giacomo Sanchietti over 5 years ago

  • Category set to nethserver-owncloud

#5 Updated by Giacomo Sanchietti over 5 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 over 5 years ago

  • Related to Feature #3191: Update ownCloud to 7.0.6 version added

#7 Updated by Alessandro Polidori over 5 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 over 5 years ago

I've created new db key and prop:

[root@alenethserver ~]# config show owncloud
owncloud=configuration
    TrustedDomains=

#9 Updated by Alessandro Polidori over 5 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Alessandro Polidori)
  • % Done changed from 30 to 60

#10 Updated by Alessandro Polidori over 5 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

  1. Do a clean installation
  2. cat /var/www/html/owncloud/config/config.php
  3. config setprop owncloud TrustedDomains pippo,paperino.pluto.it
  4. signal-event nethserver-owncloud-update
  5. cat /var/www/html/owncloud/config/config.php
  6. verify that trusted domains contains also "pippo" and "paperino.pluto.it"
  7. config setprop owncloud TrustedDomains ""
  8. signal-event nethserver-owncloud-update
  9. cat /var/www/html/owncloud/config/config.php
  10. verify that trusted domains does not contain neither "pippo" nor "paperino.pluto.it" anymore
  1. Verify the previous also with update instead of clean installation

#11 Updated by Edoardo Spadoni over 5 years ago

  • Assignee set to Edoardo Spadoni

#12 Updated by Edoardo Spadoni over 5 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 over 5 years ago

  • Assignee deleted (Edoardo Spadoni)

#14 Updated by Alessandro Polidori over 5 years ago

  • Related to Task #3206: Add documentation section about how to add custom trusted domain added

#15 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • 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

Also available in: Atom PDF