Skip to content

File upload fails with encryption on s3 storage "ObjectUpload not found" #10455

@TecJon

Description

@TecJon

Steps to reproduce

  1. Use s3 as external storage
  2. Use default encryption module
  3. Use NC web interface to upload a small image

Expected behaviour

It should upload successfully

Actual behaviour

Upload bar stops at 100% and does not respond anymore.

I should add, this is a test install on a shared web space. However, so far I couldn't make an external storage with encryption work on any installation or release.

Could be related to #10430, #8299, #7420

Server configuration

Web server: shared web space

Database: mysql 5.7.21

PHP version: 7.0.25

Nextcloud version: 14.0.0.13

Updated from an older Nextcloud/ownCloud or fresh install: fresh install

Where did you install Nextcloud from:

Signing status: No errors have been found.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

Config report
<?php
$CONFIG = array (
'instanceid' => '',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => '',
),
'datadirectory' => '/www/htdocs/cloud/example/data',
'overwrite.cli.url' => 'http://cloud.example.com/',
'dbtype' => 'mysql',
'version' => '14.0.0.13',
'dbname' => 'nc',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'nc',
'mysql.utf8mb4' => true,
'dbuser' => 'd02b4219',
'dbpassword' => 'DdSAa7fW6DcEtzrdPw8h',
'installed' => true,
'tempdirectory' => '/www/htdocs/cloud/example/tmp/',
'mail_from_address' => 'aa',
'mail_smtpmode' => 'php',
'mail_smtpauthtype' => 'LOGIN',
'mail_domain' => 'aa',
'updater.release.channel' => 'beta',
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
);

Are you using external storage, if yes which one: yes, s3

Are you using encryption: yes

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Firefox 61 64 Bit

Operating system: shared webspace

Logs

Nextcloud log (data/nextcloud.log)

Nextcloud log
Error: Call to undefined method OC\Files\Stream\Encryption::isDirectoryHandle()

Uncaught Error: Class 'Aws\S3\ObjectUploader' not found in /www/htdocs/cloud.example.com/3rdparty/aws/aws-sdk-php/src/S3/S3ClientTrait.php:46 Stack trace: #0 /www/htdocs/cloud.example.com/3rdparty/aws/aws-sdk-php/src/S3/S3ClientTrait.php(32): Aws\S3\S3Client->uploadAsync('name', 'New folder/drou...', false, 'private', Array) #1 /www/htdocs/cloud.example.com/lib/private/Files/ObjectStore/S3ObjectTrait.php(77): Aws\S3\S3Client->upload('name', 'New folder/drou...', false, 'private', Array) #2 /www/htdocs/cloud.example.com/apps/files_external/lib/Lib/Storage/AmazonS3.php(589): OCA\Files_External\Lib\Storage\AmazonS3->writeObject('New folder/drou...', false) #3 /www/htdocs/cloud.example.com/apps/files_external/lib/Lib/Storage/AmazonS3.php(419): OCA\Files_External\Lib\Storage\AmazonS3->writeBack('/www/htdocs/w01...', 'New folder/drou...') #4 [internal function]: OCA\Files_External\Lib\Storage\AmazonS3->OCA\Files_External\Lib\Storage\{closure} at /www/htdocs/cloud.example.com/3rdparty/aws/aws-sdk-php/src/S3/S3ClientTrait.php#46

Browser log

Browser log
Content Security Policy: Directive ‘child-src’ has been deprecated. Please use directive ‘worker-src’ to control workers, or directive ‘frame-src’ to control frames respectively.
JQMIGRATE: Migrate is installed, version 1.4.0 core.js:7:542
Content Security Policy: The page’s settings blocked the loading of a resource at https://cloud.example.com/index.php/apps/files/ (“script-src”).
<script> source URI is not allowed in this document: “https://cloud.example.com/apps/notifications/js/notifications.js?v=4554f71a-0”. files:55
window.controllers/Controllers is deprecated. Do not use it for UA detection. merged.js:2171
New search handler registered search.js:66:4
querying Whats New data was successful: nocontent merged-template-prepend.js:4455:4
undefined merged-template-prepend.js:4456:4
[Show/hide message details.] TypeError: xml is undefined[Learn More] merged-index.js:664:1
unreachable code after return statement[Learn More]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions