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

0 byte TUS upload results in an 500 error #3154

Closed
gabi18 opened this issue Jan 11, 2022 · 20 comments · Fixed by #4012
Closed

0 byte TUS upload results in an 500 error #3154

gabi18 opened this issue Jan 11, 2022 · 20 comments · Fixed by #4012
Assignees
Labels

Comments

@gabi18
Copy link

gabi18 commented Jan 11, 2022

Here the log of the upload.

02-11 09:57:18:631 [ info sync.httplogger ]:	"70a906aa-7baa-4a75-8d6f-94e341e4a709: Request: POST https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/files/admin/ Header: { X-OC-Mtime: 1644569723, Content-Type: application/offset+octet-stream, Content-Length: 0, Upload-Offset: 0, Tus-Resumable: 1.0.0, Upload-Metadata: filename L05ldWVyIE9yZG5lci9OZXcgQml0bWFwIGltYWdlLmJtcA==,checksum U0hBMSBkYTM5YTNlZTVlNmI0YjBkMzI1NWJmZWY5NTYwMTg5MGFmZDgwNzA5, Upload-Length: 0, Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Windows) mirall/2.10.1git (ownCloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: 70a906aa-7baa-4a75-8d6f-94e341e4a709, Original-Request-ID: 70a906aa-7baa-4a75-8d6f-94e341e4a709, } Data: []"
02-11 09:57:18:634 [ info sync.httplogger ]:	"2bcb7b53-dd4f-4383-8508-801a48ba1aba: Response: POST 500 https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/files/admin/ Header: { Access-Control-Allow-Headers: Tus-Resumable, Upload-Length, Upload-Metadata, If-Match, Access-Control-Allow-Origin: *, Access-Control-Expose-Headers: Tus-Resumable, Location, Content-Length: 0, Content-Security-Policy: default-src 'none';, Date: Fri, 11 Feb 2022 08:57:17 GMT, Location: https://ocis.ocis-traefik.latest.owncloud.works/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZXZhIiwiZXhwIjoxNjQ0NjU2MjM3LCJpYXQiOjE2NDQ1Njk4MzcsInRhcmdldCI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTE1OC9kYXRhL3R1cy8wN2EwODIwYS1iNjZmLTQ3NWUtOTBjYS0xZmY1YzhmYzhjMmUifQ.QUpi4AxMvTARME9jU0WFHgPFzRAtVR94IKzpPpW8CCs, Tus-Extension: creation,creation-with-upload,checksum,expiration, Tus-Resumable: 1.0.0, Upload-Expires: , Upload-Offset: 0, Vary: Origin, X-Content-Type-Options: nosniff, X-Download-Options: noopen, X-Frame-Options: SAMEORIGIN, X-Permitted-Cross-Domain-Policies: none, X-Robots-Tag: none, X-Xss-Protection: 1; mode=block, } Data: []"

Seen with ownCloud-2.10.0-rc3.

Steps to reproduce:

  • login to ocis.ocis-traefik.latest.owncloud.works -> login is successful
  • open Explorer and create a new file

Result:
Client shows a red error message "Host requires authentication" for a while, then the 'i' and message is shown in 'Not synced' tab.

ocis-file-upload

20220105_1143_owncloud.log.0.gz
20220105_1142_owncloud.log.2.gz
20220105_1142_owncloud.log.1.gz
20220105_1142_owncloud.log.0.gz
20220105_1059_owncloud.log.0.gz

Download of files works.

@gabi18
Copy link
Author

gabi18 commented Jan 11, 2022

Related to owncloud/client#9324

@TheOneRing
Copy link
Contributor

Is the client using tus or chunked uploads?

@TheOneRing
Copy link
Contributor

PropagateUploadFileTUS

@TheOneRing
Copy link
Contributor


01-05 11:42:31:252 [ debug sync.cookiejar ]	[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/files/einstein/") requests: ()
01-05 11:42:31:252 [ info sync.httplogger ]:	"9ac70e96-d8cf-4a8c-bf99-5b3166e207a1: Request: POST https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/files/einstein/ Header: { X-OC-Mtime: 1641379349, Content-Type: application/offset+octet-stream, Content-Length: 0, Upload-Offset: 0, Tus-Resumable: 1.0.0, Upload-Metadata: filename L05ldWVzIFRleHRkb2t1bWVudC50eHQ=,checksum U0hBMSBkYTM5YTNlZTVlNmI0YjBkMzI1NWJmZWY5NTYwMTg5MGFmZDgwNzA5, Upload-Length: 0, Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Windows) mirall/2.10.0rc3 (build 6417) (ownCloud, windows-10.0.19042 ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: 9ac70e96-d8cf-4a8c-bf99-5b3166e207a1, Original-Request-ID: 9ac70e96-d8cf-4a8c-bf99-5b3166e207a1, } Data: []"
01-05 11:42:31:252 [ info sync.networkjob ]:	Created OCC::SimpleNetworkJob("https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/files/einstein/", "9ac70e96-d8cf-4a8c-bf99-5b3166e207a1", "9ac70e96-d8cf-4a8c-bf99-5b3166e207a1") for OCC::PropagateUploadFileTUS(0x26a6a54f770)
01-05 11:42:31:313 [ info sync.httplogger ]:	"9ac70e96-d8cf-4a8c-bf99-5b3166e207a1: Response: POST 500 https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/files/einstein/ Header: { Access-Control-Allow-Headers: Tus-Resumable, Upload-Length, Upload-Metadata, If-Match, Access-Control-Allow-Origin: *, Access-Control-Expose-Headers: Tus-Resumable, Location, Content-Length: 0, Content-Security-Policy: default-src 'none';, Date: Wed, 05 Jan 2022 10:42:38 GMT, Location: https://ocis.ocis-traefik.latest.owncloud.works/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZXZhIiwiZXhwIjoxNjQxNDY1NzU4LCJpYXQiOjE2NDEzNzkzNTgsInRhcmdldCI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTE1NS9kYXRhL3R1cy9jMzg4YWUwZC03MzkyLTQ5MTktOWMyNi1mNjc4NzA1NmRmYmYifQ.JmQV7onMSpCONuZrwVaZ4IsU-z9Jwfdkr7HY5qL2BgI, Tus-Extension: creation,creation-with-upload,checksum,expiration, Tus-Resumable: 1.0.0, Upload-Expires: , Upload-Offset: 0, Vary: Origin, X-Content-Type-Options: nosniff, X-Download-Options: noopen, X-Frame-Options: SAMEORIGIN, X-Permitted-Cross-Domain-Policies: none, X-Robots-Tag: none, X-Xss-Protection: 1; mode=block, } Data: []"
01-05 11:42:31:328 [ warning sync.networkjob ]:	OCC::SimpleNetworkJob("https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/files/einstein/", "9ac70e96-d8cf-4a8c-bf99-5b3166e207a1", "9ac70e96-d8cf-4a8c-bf99-5b3166e207a1", "Error transferring https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/files/einstein/ - server replied: Internal Server Error") QNetworkReply::InternalServerError "Server replied \"500 Internal Server Error\" to \"POST https://ocis.ocis-traefik.latest.owncloud.works/remote.php/dav/files/einstein/\"" 500
01-05 11:42:31:328 [ debug sync.propagator.upload.tus ]	[ OCC::PropagateUploadFileTUS::slotChunkFinished ]:	"/Neues Textdokument.txt" "POST"

@TheOneRing

This comment was marked as off-topic.

@gabi18
Copy link
Author

gabi18 commented Jan 11, 2022

Retested with testpilotcloud-2.10.0-rc3 (build 6437) and ocis.ocis-traefik.released.owncloud.works.

  • Login
  • open Explorer and create a new file

Result: this time no error about authentication, only message "Server replied "500 Internal Server error..."

oCIS-no-sync
20220111_1258_owncloud.log.1.gz
20220111_1258_owncloud.log.2.gz
20220111_1258_owncloud.log.3.gz
20220111_1259_owncloud.log.0.gz
20220111_1259_owncloud.log.1.gz
20220111_1308_owncloud.log.0.gz
20220111_1308_owncloud.log.1.gz
20220111_1308_owncloud.log.2.gz
20220111_1308_owncloud.log.3.gz
20220111_1308_owncloud.log.4.gz
20220111_1308_owncloud.log.5.gz
20220111_1309_owncloud.log.0.gz
20220111_1311_owncloud.log.0.gz

@gabi18 gabi18 changed the title [QA] Cannot upload file to oCIS due to auth problem [QA] client 2.10.0 cannot upload a file to oCIS (due to an auth problem?) Jan 11, 2022
@TheOneRing TheOneRing transferred this issue from owncloud/client Feb 11, 2022
@TheOneRing TheOneRing changed the title [QA] client 2.10.0 cannot upload a file to oCIS (due to an auth problem?) 0 byte TUS upload results in an 500 error Feb 11, 2022
@C0rby
Copy link
Contributor

C0rby commented Feb 11, 2022

It seems to have something to do with the content-type header.

This request results in a 500 server error

curl -sk -u admin:admin -X POST https://localhost:9200/remote.php/dav/files/admin/ -H 'Content-Length: 0' -H 'Upload-Offset: 0' -H 'Tus-Resumable: 1.0.0' -H 'Upload-Metadata: filename emVyb2J5dGVz' -H 'Upload-Length: 0' -H 'Content-Type: application/offset+octet-stream'

This one without the content-type header works

curl -sk -u admin:admin -X POST https://localhost:9200/remote.php/dav/files/admin/ -H 'Content-Length: 0' -H 'Upload-Offset: 0' -H 'Tus-Resumable: 1.0.0' -H 'Upload-Metadata: filename emVyb2J5dGVz' -H 'Upload-Length: 0'

@C0rby
Copy link
Contributor

C0rby commented Feb 11, 2022

Hm after debugging a bit it seems to have something to do with our changes regarding zero byte file uploads: cs3org/reva#2309

The file is never actually being written and in the end when we try to stat the uploaded file it fails because it wasn't created...

Needs more debugging

@C0rby
Copy link
Contributor

C0rby commented Feb 14, 2022

So the issue is that TUS expects that a 0 byte upload is finished early. See this line: https://github.com/tus/tusd/blob/0d781500f958e2d69098bc485aa2575f23ee3270/pkg/handler/unrouted_handler.go#L406

But when we are uploading a file we aren't actually using the TUS handler, instead we have our own handler which is initiating a new upload. https://github.com/cs3org/reva/blob/d217886c962b05ab7aa751923016e3ccb4dd7534/internal/http/services/owncloud/ocdav/tus.go#L195

Then we call the datatx handler for the actual upload. https://github.com/cs3org/reva/blob/d217886c962b05ab7aa751923016e3ccb4dd7534/internal/http/services/owncloud/ocdav/tus.go#L242

Since this is a patch request we end up in this handler which ends prematurely for 0 byte uploads. https://github.com/tus/tusd/blob/0d781500f958e2d69098bc485aa2575f23ee3270/pkg/handler/unrouted_handler.go#L540-L544

I think a possible solution could be to call TouchFile for 0 byte uploads but this isn't implemented yet.

@micbar
Copy link
Contributor

micbar commented May 5, 2022

@C0rby TouchFile is the best solution IMO, the EOS driver implemented it some weeks ago.

@gabi18

This comment was marked as resolved.

@gabi18
Copy link
Author

gabi18 commented Jun 27, 2022

Retested with testpilotcloud 3.0.0.7819-daily20220617 (on openSUSE 15.3 / VFS off) and oCIS 2.0.0-beta.4+ba9a48a51 (docker)

Steps done:

  • open file browser
  • create a new file

Result: file isn't synced, 'Not Synced' tab shows "500 Internal Server Error"

0-byte-error

06-27 10:07:37:024 [ info sync.httplogger ]:	"d265ff0d-182a-4ae1-8efb-a8b02d309b81: Request: POST https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51 Header: { X-OC-Mtime: 1656317254, Content-Type: application/offset+octet-stream, Content-Length: 2, Upload-Offset: 0, Tus-Resumable: 1.0.0, Upload-Metadata: filename L1RleHQgRmlsZS50eHQ=,checksum U0hBMSBkZDEyMjU4MWM4Y2Q0NGQwMjI3ZjljMzA1NTgxZmZjYjRiNmYxYjQ2, Upload-Length: 2, Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Linux) mirall/3.0.0.7819-daily20220617 (testpilotcloud, opensuse-leap-5.3.18-150300.59.71-default ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: d265ff0d-182a-4ae1-8efb-a8b02d309b81, Original-Request-ID: d265ff0d-182a-4ae1-8efb-a8b02d309b81, } Data: [2 bytes of application/offset+octet-stream data]"
06-27 10:07:37:024 [ info sync.networkjob ]:	Created OCC::SimpleNetworkJob("https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51","POST", "d265ff0d-182a-4ae1-8efb-a8b02d309b81", "d265ff0d-182a-4ae1-8efb-a8b02d309b81") for OCC::PropagateUploadFileTUS(0x4d0d710)
06-27 10:07:37:030 [ info gui.socketapi ]:	Received SocketAPI message <-- "RETRIEVE_FILE_STATUS:/home/gabriele/testpilotcloud - Albert Einstein@localhost/Personal" from QLocalSocket(0x2b0d830)
06-27 10:07:37:030 [ info gui.socketapi ]:	Sending SocketAPI message --> "STATUS:SYNC:/home/gabriele/testpilotcloud - Albert Einstein@localhost/Personal" to QLocalSocket(0x2b0d830)
06-27 10:07:37:034 [ info sync.httplogger ]:	"d265ff0d-182a-4ae1-8efb-a8b02d309b81: Response: POST 500 (Error: Error transferring https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51 - server replied: Internal Server Error) https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51 Header: { Access-Control-Allow-Headers: Tus-Resumable, Upload-Length, Upload-Metadata, If-Match, Access-Control-Allow-Origin: *, Access-Control-Expose-Headers: Tus-Resumable, Location, Content-Length: 0, Content-Security-Policy: default-src 'none';, Date: Mon, 27 Jun 2022 08:07:37 GMT, Location: https://localhost:9200/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZXZhIiwiZXhwIjoxNjU2NDAzNjU3LCJpYXQiOjE2NTYzMTcyNTcsInRhcmdldCI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTE1OC9kYXRhL3R1cy82YmFkMDlkZi1kYTI3LTQ1NGUtYjc2YS0yMmU4MzVmZDMzMTgifQ.CQKGraAK2L7BHTLhwLJeMoAv_RWQZ4WHEPg-xtC4IgY, Tus-Extension: creation,creation-with-upload,checksum,expiration, Tus-Resumable: 1.0.0, X-Content-Type-Options: nosniff, X-Download-Options: noopen, X-Frame-Options: SAMEORIGIN, X-Permitted-Cross-Domain-Policies: none, X-Robots-Tag: none, X-Xss-Protection: 1; mode=block, } Data: []"
06-27 10:07:37:034 [ warning sync.networkjob ]:	OCC::SimpleNetworkJob("https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51","POST", "d265ff0d-182a-4ae1-8efb-a8b02d309b81", "d265ff0d-182a-4ae1-8efb-a8b02d309b81", "Error transferring https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51 - server replied: Internal Server Error") QNetworkReply::InternalServerError "Server replied \"500 Internal Server Error\" to \"POST https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51\"" 500
06-27 10:07:37:034 [ debug sync.propagator.upload.tus ]	[ OCC::PropagateUploadFileTUS::slotChunkFinished ]:	"/Text File.txt" "POST"
06-27 10:07:37:034 [ debug sync.propagator.upload ]	[ OCC::PropagateUploadFileCommon::commonErrorHandling ]:	""
06-27 10:07:37:034 [ warning sync.propagator.upload ]:	void OCC::PropagateUploadFileCommon::abortWithError(OCC::SyncFileItem::Status, const QString&) "Text File.txt" "Server replied \"500 Internal Server Error\" to \"POST https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51\""

testpilotcloud.log.0-byte-error.gz

@gabi18 gabi18 reopened this Jun 27, 2022
@gabi18
Copy link
Author

gabi18 commented Jun 27, 2022

With the same test setup as above ( testpilotcloud 3.0.0.7819-daily20220617, oCIS 2.0.0-beta.4+ba9a48a51) the server also replies the 500 internal error now when trying to upload a non empty file (TextFile.txt, 16 bytes) to 'Personal'.

Uploading a small file was successful before with earlier versions of client and oCIS.

server-error

file-upload-error

06-27 11:29:58:960 [ info sync.httplogger ]:	"e42aaa7d-8d68-4708-a12d-4e920ffc0ae7: Request: POST https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51 Header: { X-OC-Mtime: 1656322070, Content-Type: application/offset+octet-stream, Content-Length: 16, Upload-Offset: 0, Tus-Resumable: 1.0.0, Upload-Metadata: filename L1RleHRGaWxlLnR4dA==,checksum U0hBMSA0M2QwOTZhYjkwYWUzOTliMTRlMTU3OGZiYTM0NWMwNDZlN2U5ODZm, Upload-Length: 16, Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Linux) mirall/3.0.0.7819-daily20220617 (testpilotcloud, opensuse-leap-5.3.18-150300.59.71-default ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: e42aaa7d-8d68-4708-a12d-4e920ffc0ae7, Original-Request-ID: e42aaa7d-8d68-4708-a12d-4e920ffc0ae7, } Data: [16 bytes of application/offset+octet-stream data]"
06-27 11:29:58:960 [ info sync.networkjob ]:	Created OCC::SimpleNetworkJob("https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51","POST", "e42aaa7d-8d68-4708-a12d-4e920ffc0ae7", "e42aaa7d-8d68-4708-a12d-4e920ffc0ae7") for OCC::PropagateUploadFileTUS(0x355e0b0)
06-27 11:29:58:971 [ info sync.httplogger ]:	"e42aaa7d-8d68-4708-a12d-4e920ffc0ae7: Response: POST 500 (Error: Error transferring https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51 - server replied: Internal Server Error) https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51 Header: { Access-Control-Allow-Headers: Tus-Resumable, Upload-Length, Upload-Metadata, If-Match, Access-Control-Allow-Origin: *, Access-Control-Expose-Headers: Tus-Resumable, Location, Content-Length: 0, Content-Security-Policy: default-src 'none';, Date: Mon, 27 Jun 2022 09:29:58 GMT, Location: https://localhost:9200/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJyZXZhIiwiZXhwIjoxNjU2NDA4NTk4LCJpYXQiOjE2NTYzMjIxOTgsInRhcmdldCI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTE1OC9kYXRhL3R1cy9jMzgyMjg5ZC00M2I5LTQ2MWYtYTYyYy03NDE2N2JmMDFlY2IifQ.5beLfud0Mep9KyhVq_k5P9unL8glJXG35qA43s6bluE, Tus-Extension: creation,creation-with-upload,checksum,expiration, Tus-Resumable: 1.0.0, X-Content-Type-Options: nosniff, X-Download-Options: noopen, X-Frame-Options: SAMEORIGIN, X-Permitted-Cross-Domain-Policies: none, X-Robots-Tag: none, X-Xss-Protection: 1; mode=block, } Data: []"
06-27 11:29:58:971 [ warning sync.networkjob ]:	OCC::SimpleNetworkJob("https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51","POST", "e42aaa7d-8d68-4708-a12d-4e920ffc0ae7", "e42aaa7d-8d68-4708-a12d-4e920ffc0ae7", "Error transferring https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51 - server replied: Internal Server Error") QNetworkReply::InternalServerError "Server replied \"500 Internal Server Error\" to \"POST https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$4c510ada-c86b-4815-8820-42cdf82c3d51\"" 500
06-27 11:29:58:971 [ debug sync.propagator.upload.tus ]	[ OCC::PropagateUploadFileTUS::slotChunkFinished ]:	"/TextFile.txt" "POST"
06-27 11:29:58:971 [ debug sync.propagator.upload ]	[ OCC::PropagateUploadFileCommon::commonErrorHandling ]:	""

TextFile.log.gz

@gabi18

This comment was marked as outdated.

@gabi18
Copy link
Author

gabi18 commented Jun 27, 2022

Uploading a non empty file to ocis.ocis-traefik.released.owncloud.works (Beta3) using testpilotcloud 3.0.0.7819-daily20220617 works without error.

@gabi18
Copy link
Author

gabi18 commented Jun 28, 2022

Another logfile from a test with testpilotcloud 3.0.0.7819-daily20220617, oCIS 2.0.0-beta.4+ba9a48a51 and file with 0 byte (the file created in 'dolphin' in #3154 (comment) has in fact 2 bytes).

06-28 08:35:09:628 [ info sync.httplogger ]:	"4212fddf-0455-48c8-a377-fd7e30d98673: Request: GET https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c/NullByte.txt Header: { Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Linux) mirall/3.0.0.7819-daily20220617 (testpilotcloud, opensuse-leap-5.3.18-150300.59.71-default ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: 4212fddf-0455-48c8-a377-fd7e30d98673, Original-Request-ID: 4212fddf-0455-48c8-a377-fd7e30d98673, } Data: []"
...
06-28 08:35:09:643 [ info sync.httplogger ]:	"4212fddf-0455-48c8-a377-fd7e30d98673: Response: GET 500 (Error: Error transferring https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c/NullByte.txt - server replied: Internal Server Error) https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c/NullByte.txt Header: { Access-Control-Allow-Origin: *, Content-Length: 0, Content-Security-Policy: default-src 'none';, Date: Tue, 28 Jun 2022 06:35:09 GMT, X-Content-Type-Options: nosniff, X-Download-Options: noopen, X-Frame-Options: SAMEORIGIN, X-Permitted-Cross-Domain-Policies: none, X-Robots-Tag: none, X-Xss-Protection: 1; mode=block, } Data: []"

ocis-0-byte.log.gz

@TheOneRing
Copy link
Contributor

Appears to be an unrelated issue, works fine with the traefik example.

@gabi18
Copy link
Author

gabi18 commented Jun 28, 2022

Another logfile from a test with testpilotcloud 3.0.0.7819-daily20220617, oCIS 2.0.0-beta.4+ba9a48a51 and file with 0 byte (the file created in 'dolphin' in #3154 (comment) has in fact 2 bytes).

06-28 08:35:09:628 [ info sync.httplogger ]:	"4212fddf-0455-48c8-a377-fd7e30d98673: Request: GET https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c/NullByte.txt Header: { Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Linux) mirall/3.0.0.7819-daily20220617 (testpilotcloud, opensuse-leap-5.3.18-150300.59.71-default ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, X-Request-ID: 4212fddf-0455-48c8-a377-fd7e30d98673, Original-Request-ID: 4212fddf-0455-48c8-a377-fd7e30d98673, } Data: []"
...
06-28 08:35:09:643 [ info sync.httplogger ]:	"4212fddf-0455-48c8-a377-fd7e30d98673: Response: GET 500 (Error: Error transferring https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c/NullByte.txt - server replied: Internal Server Error) https://localhost:9200/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c/NullByte.txt Header: { Access-Control-Allow-Origin: *, Content-Length: 0, Content-Security-Policy: default-src 'none';, Date: Tue, 28 Jun 2022 06:35:09 GMT, X-Content-Type-Options: nosniff, X-Download-Options: noopen, X-Frame-Options: SAMEORIGIN, X-Permitted-Cross-Domain-Policies: none, X-Robots-Tag: none, X-Xss-Protection: 1; mode=block, } Data: []"

ocis-0-byte.log.gz

-> this logging is for download of a 0 byte file

... but same error for POST

get-and-post-error

@gabi18
Copy link
Author

gabi18 commented Jun 30, 2022

Confirmed fixed with ocis.ocis-traefik.released.owncloud.works productversion: "2.0.0-beta.4" (client: ownCloud-3.0.0-daily20220628.7878.x64.msi):
Uploading a 0 byte file (as well as non empty files) works.

@thrhgh
Copy link

thrhgh commented Oct 24, 2023

Hi guys.
According to this thread, the issue should be resolved in the current release.

However, I just receive the same issue with 0 byte transfers in the current ownCloud ocis server (4.0) which I run as a docker container and with the 4.2 Linux Desktop client on Fedora.

0bytetransfer

Any suggestions on how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants