Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add external storage as user #10327

Closed
Ra72xx opened this issue Aug 11, 2014 · 12 comments · Fixed by #13116
Closed

Unable to add external storage as user #10327

Ra72xx opened this issue Aug 11, 2014 · 12 comments · Fixed by #13116
Labels
Milestone

Comments

@Ra72xx
Copy link

Ra72xx commented Aug 11, 2014

I cannot add any external storage as OC user. The permission to do so has been granted in the admin settings.
However, when I try to enter the configuration of an external storage in the user's settings page, only the fields "name" and "type" are available at all. No more configuration can be entered.
Also it is not possible to add the storage manually by creating a data/user/mount.json-file. An external storage added this way does not appear in the "all files" view of OC's file manager. It does appear, however, when clicking on the "external storage" panel of the file manager, but cannot be browsed.
The same external storage works flawlessly when added as admin in the admin config page.

@karlitschek
Copy link
Contributor

Can you post a full bug report as described here please?
https://github.com/owncloud/core/blob/master/CONTRIBUTING.md

@Ra72xx
Copy link
Author

Ra72xx commented Aug 11, 2014

I'll look into it when I've time.
But the problem is quite simple to reproduce for me: Try to add an external storage as user. The fields in which to put the detailed configuration simply do not appear on the personal configuration page, be it with Firefox or Rekonq (webkit). Web server (nginx) does not give any error, Owncloud does not log any error, Firefox console (I don't know too much about that, however) shows no special events. All software is on current stable release.

@Ra72xx
Copy link
Author

Ra72xx commented Aug 13, 2014

Steps to reproduce

  1. Try to add an external storage to OC from user's config panel (not admin!)
  2. Only the fields "folder name" and the dropbox with which you can select the type of external estorage are available.
  3. Therefore no external storage can be added, as you're not able to correcty configure it.

Variant:

  1. Add external storage to OC from admin's control panel, working as expected.
  2. Copy the relevant lines from data/mount.json to data/user/mount.json
  3. External storage appears in OC's file browser, but not in the "all files"-view, only in the "external storage"-view. It cannot be browsed, however, clicking it goes to the home-drawer.

Expected behaviour

User should be able to add external storage.

Actual behaviour

User is unable to add external storage as the necessary config options are not available in the web interface. Manually adding w

Server configuration

Operating system:
ArchLinux ARM
Web server:
nginx 1.6.1-2
Database:
mariadb 10.0.12-2
PHP version:
php 5.5.15-1
php-apcu 4.0.6-2
php-fpm 5.5.15-1
php-gd 5.5.15-1
php-intl 5.5.15-1
php-mcrypt 5.5.15-1
php-pear 5.5.15-1
ownCloud version: (see ownCloud admin page)
owncloud 7.0.1-1
Updated from an older ownCloud or fresh install:
owncloud 7.0.0
List of activated apps:
Activity,Tasks,Bookmarks,Calendar,Contacts,Deleted Files,Documents,External Sites,External Storage,First Run Wizard,Full Text Search,Mail Templete Editor,OC Dependancies Info,PDF Viewer,Share Files,Text Editor,Updater,Versions,Mozilla Sync,Dashboard,ocPassmann (also tried without the last two)

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'trusted_domains' => 
  array (
    0 => '',
  ),
  'datadirectory' => '/srv/http/owncloud-data',
  'dbtype' => 'mysql',
  'version' => '7.0.1.1',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'asset-pipeline.enabled' => true,
  'defaultapp' => 'ocDashboard',
  'theme' => '',
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_from_address' => '',
  'mail_domain' => '',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => true,
  'mail_smtphost' => '',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'mail_smtpsecure' => 'tls',
  'mail_smtpport' => '587',
  'enable_previews' => false,
);

Are you using external storage, if yes which one: local/smb/sftp/...
Local storage (NFS-mount)

Are you using encryption: yes/no
no

Client configuration

Browser:
Firefox 31 with Linux and Android
Rekonq with Linux

Operating system:
Linux / Android

Logs

Web server error log

no errors logged

ownCloud log (data/owncloud.log)

no errors logged

Browser log

Firefox console:

getUserData() und setUserData() sollten nicht mehr verwendet werden. Verwenden Sie stattdessen WeakMap oder element.dataset. 
Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
https://server:port/assets/efa1166816daa7af9d6d1e85ea200854.js is being assigned a //# sourceMappingURL, but already has one
Synchrone XMLHttpRequests am Haupt-Thread sollte nicht mehr verwendet werden, weil es nachteilige Effekte für das Erlebnis der Endbenutzer hat. Für weitere Hilfe siehe http://xhr.spec.whatwg.org/
Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource blockiert: Ein Versuch, Inline-Skripte auszuführen, wurde blockiert 
personal window.controllers sollte nicht mehr verwendet werden. Verwenden Sie es nicht für die Browser-Erkennung. 
TypeError: (intermediate value)(...) is not a function 
getPreventDefault() sollte nicht mehr verwendet werden. Verwenden Sie stattdessen defaultPrevented.

Interesting part in German: Content security policy: The settings of the page have blocked loading a ressource: An attempt to execute inline scripts was blocked.

@brrrrrrrt
Copy link

+1

looks like the problem is tied to 'asset-pipeline.enabled' => true,

as a workaround you may try to disable this feature.

@Ra72xx
Copy link
Author

Ra72xx commented Aug 21, 2014

Disabling the asset cache indeed seems to solve the problem, thx for the hint. However, running OC on very low end hw, I'm glad for every performance saver I can get, so it would be great to have this bug fixed.

@PVince81
Copy link
Contributor

PVince81 commented Sep 5, 2014

Strange, how can these be related ?

@Xenopathic do you have an idea ?

@RobinMcCorkell
Copy link
Member

The inability to copy across a configuration from the admin mount.json to the user's one is probably a syntax problem - there are some subtle differences. However, as far as the actual issue is concerned, I think that asset-pipeline.enabled causes some problem loading JS files for the files_external section in Personal settings.

@ldidry
Copy link

ldidry commented Sep 8, 2014

I've got another problem that setting asset-pipeline.enabled to false resolved: the javascript files of the personal settings page for the activity app weren't loaded and so, I could'nt change the settings from the interface.

Just an idea (I've got a similar problem when developing Lutim): maybe the javascript files that are concatenated and compressed are not ending with a semi-colon and prevents the javascript code to be correctly evaluated. I solved the problem by inserting a file containing a semi-colon between each file.

@RobinMcCorkell
Copy link
Member

Reproduced it on master.

@rjaeckel
Copy link
Contributor

Same in my installation with enabled asset-pipeline.
Esp. the "personal"-Page did not work properly. FF logs two Entries in the Console about that:
TypeError: (intermediate value)(...) is not a function
TypeError: $(...).fileupload is not a function

May be the order of the scripts is wrong? With disabled asset-pipeline the CSP-Errors remain, without any negative effect.

@MorrisJobke
Copy link
Contributor

@DeepDiver1975 another asset pipeline issue like the one from documents

@vutang50
Copy link

I had the same issue on my installation. Along with this, users were not able to add a personal avatar with asset-pipeline.enabled. As soon as I removed the setting, not only were users able to add their own storage but they were able to set their own avatars.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants