nextcloud-filelink icon indicating copy to clipboard operation
nextcloud-filelink copied to clipboard

An unknown error is shown although the file upload was successful

Open j-ed opened this issue 8 years ago • 12 comments

Expected behavior

When uploading an attachment with the app the upload process should end without running into an error condition.

Current behavior

As I uploaded files of a size of appr. 5 MB and 10 MB the following message was shown and the upload process aborted:

2017-10-05 19_53_32-error

Surprisingly the attachments have all successfully been uploaded to the attachment folder. In the Thunderbird error console the following messages were logged. The last entry is showing a 401 Unauthorized result:

GET (XHR) https://<my-nextcloud-server>/ocs/v1.php/cloud/user [HTTP/1.1 200 OK 476ms]
PROPFIND (XHR) https://<username>:<password>@<my-nextcloud-server>/remote.php/webdav [HTTP/1.1 207 Multi-Status 5032ms]
PUT (XHR) https://<my-nextcloud-server>/remote.php/webdav/MailAttachments/1507224757618_IMG_0099.MOV [HTTP/1.1 201 Created 7229ms]
POST (XHR) https://<username>:<password>@<my-nextcloud-server>/ocs/v1.php/apps/files_sharing/api/v1/shares [HTTP/1.1 401 Unauthorized 323ms]

To double-check if access to the server is possible with the given URL (the last one), I copy-pasted it to a private browser window. The following message was displayed which might be the reason for the unknown error condition:

2017-10-05 19_39_53-privates surfen

Environment

Server Configuration

OS: Linux 3.16.47 Web server: Apache2 2.4.26 Database: MariaDB 10.0.32 PHP version: 5.6.30 Nextcloud version: 12.0.3

Client Configuration

Thunderbird version: 52.3.0 Nextcloud for Filelink add-on version: 1.7 Operating system: Windows 7

j-ed avatar Oct 05 '17 17:10 j-ed

i see the same behavior, thunderbird on os x sierra. file upload is successfull but i get an error message, and no file link is created in the email message

nilsbecker avatar Oct 11 '17 12:10 nilsbecker

ah, my error is resolved now. in the password dialog when adding the account, one has to give the user account password for nextcloud. i thought that was an arbitrary new password to share with recipients of the files

in general i think some minimal documentation of the account setup is necessary. best would be on the plugin homepage

nilsbecker avatar Oct 11 '17 13:10 nilsbecker

scratch the last comment. it appears i was right the first time. nextcloud-filelink is NOT working for me currently.

i observe this behavior

  1. if i create a filelink account with my nextcloud user password in the fielt 'password for uploaded files' i can successfully create shared links. BUT then my nextcloud password is needed for downloading the files

  2. if i create a filelink account with an arbitrary password, i get 'unknown error' messages. upload succeeds but no share link

  3. it's not possible to create more than one nextcloud share account

also, i am running the nextcloud application in the backround on my computer.

nilsbecker avatar Oct 11 '17 13:10 nilsbecker

same issue upload is OK but no link generated

error occured : 401 unauthorized

20/Nov/2017:11:38:18 +0100] "POST /ocs/v1.php/apps/files_sharing/api/v1/shares?format=json HTTP/1.1" 401 936 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 Lightning/5.4.4"

nextcloud 12 thunderbird 52.4.0 addon 1.7

ghost avatar Nov 20 '17 10:11 ghost

for me, this was due to the password policy the password entered in the plugin must match the policy (8 character for me)

ghost avatar Nov 20 '17 10:11 ghost

Same issue here with the same error (Unknown error ...). With let's encrypt and without SSL. Really would be great to have this add-on working because I have to send many emails with big attachments.

Add-on: 1.7 Thunderbird: 52.4.0 OS: Windows 7 Pro (with latest updates)

walhallaRV avatar Nov 21 '17 10:11 walhallaRV

Thanks @berger-anthony ! For me too, I got an error message ( "Unable to upload FILEXXX to SERVERNAME"). The file uploaded ok, but then would not share due to the password policy on the owncloud server (cloudstor.aarnet.edu.au).

In this case, I needed 11 characters, uppercase, lowercase, and special characters.

dewoller avatar Sep 18 '18 06:09 dewoller

screenshot I got the same here. But it's new for me. It worked wonderful long time. I don't know if anything changed at all, but since today, the error message "unknown error" is shown. Attachements where uploaded correctly, but the error is shown... :( NC 14.0.1. Thunderbird 52.9.1 Linux Mint 19 - latest Patchlevel

jamfx avatar Oct 05 '18 11:10 jamfx

for me, this was due to the password policy the password entered in the plugin must match the policy (8 character for me)

Same think for me, remove my provider and create again with strong password works !

Mickael-Martin avatar Apr 02 '19 18:04 Mickael-Martin

I only have this problem if Nextcloud is setup to "Enforce password protection" and i do not set a password in filelink.

benbrummer avatar Apr 09 '19 08:04 benbrummer

I had the same problem with the password. But for me it was because the password didn't meet the required password guidelines. Maybe "Filelink" should check the password for compliance with the password guidelines.

YoSiJo avatar Apr 19 '19 14:04 YoSiJo

Agree! Or at least it should mention the policy in effect instead of silently fail.

alfredbuehler avatar Apr 22 '19 10:04 alfredbuehler