Skip to content

Internal Server Error when uploading files with umlauts to a mounted storage on S3 [$30 awarded] #8325

Closed

Description

@tomraithel

Steps

  1. mount amazon s3 folder
  2. create new file with umlauts within mounted folder
  3. in the ownCloud client click on "activities"

Actual result

Upload fails with internal server error

Expected result

Upload should work without error

Details

My folder structure is as following:

- ownCloud
  - dir1 // normal folder
  - s3 // folder mounted to amazon s3 storage

When I add new files to my mounted s3 storage and the file names contains umlauts like "äöü" my client does not upload the files and complains with an "Internal Server Error 500"

However, if I upload the same files first to an unmounted directory (like dir1 in my example), the upload works correctly. If i then MOVE the file from dir1 to s3 everything is OK. The error only arises, if I ADD a new file with umlauts directly into the s3.

I already tried to install the server on two different environments - no difference. Could this be a problem in the files_external app?

Versions:

Server: ownCloud 6.0.2 (stable)
Client: 1.5.4(2580) on OSX

Activity

  1. DeepDiver1975 commented on Apr 23, 2014

    @DeepDiver1975
    Contributor

    "Internal Server Error 500"

    this indicates a fatal error on the server side - please double check your server logs (data/owncloud.log and web server error log) for more detailed error messages - THX

  2. tomraithel commented on Apr 23, 2014

    @tomraithel
    Author

    Ok, thanks for the hint. Log files say following:

    {"app":"files_external","message":"The request signature we calculated does not match the signature you provided. Check your key and signing method.","level":3,"time":"2014-04-23T11:33:33+00:00"}
    {"app":"webdav","message":"\\OC\\Files\\Filesystem::rename() failed","level":3,"time":"2014-04-23T11:33:33+00:00"}
    {"app":"webdav","message":"Exception: Sabre_DAV_Exception: Could not rename part file to final file","level":4,"time":"2014-04-23T11:33:33+00:00"}
    

    This error is logged 4 times until ownCloud gives up with this file.

  3. DeepDiver1975 commented on Apr 23, 2014

    @DeepDiver1975
    Contributor

    @tomraithel are you by any chance in the position to test this pull request :#8195

    Sounds similar 😉

  4. tomraithel commented on Apr 23, 2014

    @tomraithel
    Author

    @DeepDiver1975 yes, I am :)
    Thanks for your fast reply - I applied the pull request, but it didn´t fix the issue. As far as I can see #8195 only applies to files with the name "."

  5. ctjctj commented on Apr 25, 2014

    @ctjctj
    Contributor

    @DeepDiver1975 @tomraithel I have a clue how to fix this. I'll see if I can get it coded up in the next couple of days. (I'm the author of the #8195)

  6. kostajh commented on May 15, 2014

    @kostajh

    @ctjctj, you wrote:

    I have a clue how to fix this. I'll see if I can get it coded up in the next couple of days.

    Is your fix in #8195? That doesn't seem like it addresses the issue of file names with umlauts, Greek characters, accents, etc.

  7. SitoCH commented on Aug 8, 2014

    @SitoCH

    I have the same issue when using + and accents, #8195 doesn't fix it.

    Versions:

    Server: ownCloud 7.0.1

  8. butonic commented on Aug 12, 2014

    @butonic
    Contributor

    Not OS related. This works:

    curl --user 'admin:admin' -T README.md 'http://localhost/core/remote.php/webdav/AmazonS3undKompatible/README.md'
    

    This does not:

    curl --user 'admin:admin' -T README.md 'http://localhost/core/remote.php/webdav/AmazonS3undKompatible/REÄDME.md'
    <?xml version="1.0" encoding="utf-8"?>
    <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
      <s:exception>Sabre\DAV\Exception</s:exception>
      <s:message>Could not rename part file to final file</s:message>
      <s:sabredav-version>1.8.10</s:sabredav-version>
    </d:error>
    
    

    Investigating.

  9. added this to the milestone on Aug 21, 2014
  10. self-assigned this
    on Aug 21, 2014
  11. changed the title [-]Internal Server Error when uploading files with umlauts to a mounted storage on S3[/-] [+]Internal Server Error when uploading files with umlauts to a mounted storage on S3 [$30 awarded][/+] on Feb 7, 2017
  12. lock commented on Aug 3, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  13. locked as resolved and limited conversation to collaborators on Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions