Skip to content

Sync aborted if TUS HEAD request returns 404 #633

Closed

Description

@TheOneRing

Expected behaviour:
If we receive a 404, we should restart the upload.

25-10-30 12:30:59:120 [ info sync.httplogger ]:	REQUEST 732bd7c9-9e4c-4bd4-a290-8dce71c8ee02 {"request":{"body":{"length":0},"header":{"accept":"*/*","accept-language":"en_DE","authorization":"Bearer [redacted]","original-request-id":"732bd7c9-9e4c-4bd4-a290-8dce71c8ee02","user-agent":"Mozilla/5.0 (Macintosh) mirall/3.0.0 (OpenCloud Beta, macos-25.0.0 ClientArchitecture: arm64 OsArchitecture: arm64)","x-request-id":"732bd7c9-9e4c-4bd4-a290-8dce71c8ee02"},"info":{"cached":false,"id":"732bd7c9-9e4c-4bd4-a290-8dce71c8ee02","method":"HEAD","url":"https://cloud.opencloud.test/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmV2YSJdLCJleHAiOjE3NjE5MTAyNDQsImlhdCI6MTc2MTgyMzg0NCwidGFyZ2V0IjoiaHR0cDovL2xvY2FsaG9zdDo5MTU4L2RhdGEvdHVzLzVhMThhNDg1LTNiYjUtNDY2Zi05MTAxLTU5YjVjOGJmM2Y3NCJ9.lIG0mJjwMjcRGF9f88yLyvPHDqJo_e3DmSwn_ydHecE"}}}
25-10-30 12:30:59:134 [ info sync.httplogger ]:	RESPONSE 732bd7c9-9e4c-4bd4-a290-8dce71c8ee02 {"response":{"body":{"length":0},"header":{"content-length":"0","content-security-policy":"child-src 'self'; connect-src 'self' blob: https://companion.opencloud.test/ wss://companion.opencloud.test/ https://raw.githubusercontent.com/opencloud-eu/awesome-apps/ https://keycloak.opencloud.test/ https://update.opencloud.eu/; default-src 'none'; font-src 'self'; frame-ancestors 'self'; frame-src 'self' blob: https://embed.diagrams.net/ https://collabora.opencloud.test/ https://docs.opencloud.eu; img-src 'self' data: blob: https://raw.githubusercontent.com/opencloud-eu/awesome-apps/ https://collabora.opencloud.test/; manifest-src 'self'; media-src 'self'; object-src 'self' blob:; script-src 'self' 'unsafe-inline' https://keycloak.opencloud.test/; style-src 'self' 'unsafe-inline'","content-type":"text/plain; charset=utf-8","date":"Thu, 30 Oct 2025 11:30:59 GMT","referrer-policy":"strict-origin-when-cross-origin","tus-resumable":"1.0.0","vary":"Origin","x-content-type-options":"nosniff, nosniff","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-request-id":"732bd7c9-9e4c-4bd4-a290-8dce71c8ee02","x-robots-tag":"none","x-xss-protection":"1; mode=block"},"info":{"id":"732bd7c9-9e4c-4bd4-a290-8dce71c8ee02","method":"HEAD","reply":{"cached":false,"duration":13,"durationString":"duration(0h, 0min, 0s, 13ms)","error":"Error transferring https://cloud.opencloud.test/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmV2YSJdLCJleHAiOjE3NjE5MTAyNDQsImlhdCI6MTc2MTgyMzg0NCwidGFyZ2V0IjoiaHR0cDovL2xvY2FsaG9zdDo5MTU4L2RhdGEvdHVzLzVhMThhNDg1LTNiYjUtNDY2Zi05MTAxLTU5YjVjOGJmM2Y3NCJ9.lIG0mJjwMjcRGF9f88yLyvPHDqJo_e3DmSwn_ydHecE - server replied: ","status":404,"version":"HTTP 1.1"},"url":"https://cloud.opencloud.test/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmV2YSJdLCJleHAiOjE3NjE5MTAyNDQsImlhdCI6MTc2MTgyMzg0NCwidGFyZ2V0IjoiaHR0cDovL2xvY2FsaG9zdDo5MTU4L2RhdGEvdHVzLzVhMThhNDg1LTNiYjUtNDY2Zi05MTAxLTU5YjVjOGJmM2Y3NCJ9.lIG0mJjwMjcRGF9f88yLyvPHDqJo_e3DmSwn_ydHecE"}}}

25-10-30 12:30:59:134 [ debug sync.propagator.upload ]	[ OCC::PropagateUploadFileCommon::commonErrorHandling ]:	""
25-10-30 12:30:59:134 [ warning sync.propagator.upload ]:	void OCC::PropagateUploadFileCommon::abortWithError(SyncFileItem::Status, const QString &) "title_t023.mkv" "Error transferring https://cloud.opencloud.test/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmV2YSJdLCJleHAiOjE3NjE5MTAyNDQsImlhdCI6MTc2MTgyMzg0NCwidGFyZ2V0IjoiaHR0cDovL2xvY2FsaG9zdDo5MTU4L2RhdGEvdHVzLzVhMThhNDg1LTNiYjUtNDY2Zi05MTAxLTU5YjVjOGJmM2Y3NCJ9.lIG0mJjwMjcRGF9f88yLyvPHDqJo_e3DmSwn_ydHecE - server replied: "
25-10-30 12:30:59:135 [ info sync.database ]:	Setting blacklist entry for "title_t023.mkv" 1 "Error transferring https://cloud.opencloud.test/data/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicmV2YSJdLCJleHAiOjE3NjE5MTAyNDQsImlhdCI6MTc2MTgyMzg0NCwidGFyZ2V0IjoiaHR0cDovL2xvY2FsaG9zdDo5MTU4L2RhdGEvdHVzLzVhMThhNDg1LTNiYjUtNDY2Zi05MTAxLTU5YjVjOGJmM2Y3NCJ9.lIG0mJjwMjcRGF9f88yLyvPHDqJo_e3DmSwn_ydHecE - server replied: " 1761823859 25 1761292909 "" "" OCC::SyncJournalErrorBlacklistRecord::Category::Normal

Activity

  1. added this to the Next milestone on Nov 5, 2025
  2. changed the title [-]Sync aborted if TUS head returns 404[/-] [+]Sync aborted if TUS HEAD request returns 404[/+] on Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:p2-high

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions