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

Tus upload: The file name limit of 255bytes is applied against the file path #7610

Closed
2 tasks done
zerolabnet opened this issue Oct 27, 2023 · 7 comments · Fixed by #7630
Closed
2 tasks done

Tus upload: The file name limit of 255bytes is applied against the file path #7610

zerolabnet opened this issue Oct 27, 2023 · 7 comments · Fixed by #7630
Assignees

Comments

@zerolabnet
Copy link

Pre-submission Checks

  • I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.

Describe the bug

At this point there is a check for a path length of 255 bytes, not 255 characters. I am using Cyrillic, which character encoding takes 2 bytes. So the OwnCloud client is restricting me to use a path length that is actually half as long as if I were using Latin characters. This is the problem:

Снимок экрана от 2023-10-27 13-46-16

Path:
/Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx

String in UTF-8:

2f,d094,d0b5,d181,d0bd,d0be,d0bb,2f,d0a0,d0b0,d0b7,d180,d0b0,d0b1,d0be,d182,d0ba
d0b0,20,d180,d0b5,d0b3,d0bb,d0b0,d0bc,d0b5,d0bd,d182,d0be,d0b2,2f,d0a3,d0bf,d180
d0b0,d0b2,d0bb,d0b5,d0bd,d0b8,d0b5,20,d0bf,d0be,d0bb,d18c,d0b7,d0be,d0b2,d0b0,d182
d0b5,d0bb,d18f,d0bc,d0b8,20,d098,d0a2,20,d0b8,d0bd,d184,d180,d0b0,d181,d182,d180
d183,d0ba,d182,d183,d180,d18b,20,d0ba,d0be,d0bc,d0bf,d0b0,d0bd,d0b8,d0b8,2f,32,30
32,33,2d,30,35,2d,31,35,20,d0a3,d0bf,d180,d0b0,d0b2,d0bb,d0b5,d0bd,d0b8,d0b5,20,d0bf
d0be,d0bb,d18c,d0b7,d0be,d0b2,d0b0,d182,d0b5,d0bb,d18f,d0bc,d0b8,20,d098,d0a2,20
d0b8,d0bd,d184,d180,d0b0,d181,d182,d180,d183,d0ba,d182,d183,d180,d18b,20,d0ba,d0be
d0bc,d0bf,d0b0,d0bd,d0b8,d0b8,2e,64,6f,63,78

Number of characters: 152
Number of bytes: 275

In fact, I have to take a shortcut to:
/Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструкту.docx

String in UTF-8:

2f,d094,d0b5,d181,d0bd,d0be,d0bb,2f,d0a0,d0b0,d0b7,d180,d0b0,d0b1,d0be,d182,d0ba
d0b0,20,d180,d0b5,d0b3,d0bb,d0b0,d0bc,d0b5,d0bd,d182,d0be,d0b2,2f,d0a3,d0bf,d180
d0b0,d0b2,d0bb,d0b5,d0bd,d0b8,d0b5,20,d0bf,d0be,d0bb,d18c,d0b7,d0be,d0b2,d0b0,d182
d0b5,d0bb,d18f,d0bc,d0b8,20,d098,d0a2,20,d0b8,d0bd,d184,d180,d0b0,d181,d182,d180
d183,d0ba,d182,d183,d180,d18b,20,d0ba,d0be,d0bc,d0bf,d0b0,d0bd,d0b8,d0b8,2f,32,30
32,33,2d,30,35,2d,31,35,20,d0a3,d0bf,d180,d0b0,d0b2,d0bb,d0b5,d0bd,d0b8,d0b5,20,d0bf
d0be,d0bb,d18c,d0b7,d0be,d0b2,d0b0,d182,d0b5,d0bb,d18f,d0bc,d0b8,20,d098,d0a2,20
d0b8,d0bd,d184,d180,d0b0,d181,d182,d180,d183,d0ba,d182,d183,2e,64,6f,63,78

Number of characters: 141
Number of bytes: 254

Basically I can't use ownCloud client properly. I fit within the limitations of most file systems (255 characters per path), but I don't fit within the limitations of the ownCloud client (255 bytes per path).

Expected behavior

I believe that the developers did not think about encoding characters larger than 1 byte. I suggest to rewrite the check for 255 characters, not bytes.

Steps to reproduce the issue

No response

Screenshots

No response

Logs

No response

Client version number

Снимок экрана от 2023-10-27 14-04-22

Desktop environment (Linux only)

Manjaro Linux with GNOME version 44.5

Client package version and origin (Linux only)

From my distribution

Installation path (Windows only)

No response

Server information

ownCloud Infinite Scale
Edition Community
Version 4.0.0+13f66cbf8
Web client version 8.0.0-alpha.4

Additional context

No response

@TheOneRing
Copy link
Contributor

TheOneRing commented Oct 27, 2023

Thats a server issue I assume as you got a 412 http error.
Please provide http logs for the failed post.
image

@zerolabnet
Copy link
Author

#=#=#=# Syncrun started 2023-10-27T12:26:19Z
#=#=#=#=# Propagation starts 2023-10-27T12:26:19Z (last step: 152 msec , total: 152 msec) 
2023-10-27T12:26:19+00:00 | Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Приложение 1 Шаблон заявки на организацию рабочего места.xlsx | CSyncEnums::CSYNC_INSTRUCTION_NEW | OCC::SyncFileItem::Up | | 1698352247 |  | 20065 |  | OCC::SyncFileItem::SoftError | Сервер ответил от "412 Precondition Failed" до "POST https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f" | 412 | 0 | 0 | 663994e9-03b4-4077-bbb9-80d942459cca | 
#=#=#=# Syncrun finished 2023-10-27T12:26:19Z (last step: 62 msec , total: 214 msec) 

This is not a server problem, through the web client the file on this path without problems is filled.

@TheOneRing
Copy link
Contributor

I need the http log not the .owncloudsync.log

@zerolabnet
Copy link
Author

http log

23-10-27 15:47:09:221 [ info gui.folderwatcher ]:	Detected changes in paths: QSet("/home/zerochaos/ownCloud/Unison/Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx")
23-10-27 15:47:09:221 [ debug sync.localdiscoverytracker ]	[ OCC::LocalDiscoveryTracker::addTouchedPath ]:	inserted touched "Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx"
23-10-27 15:47:09:221 [ info scheduler.syncscheduler ]:	Enqueue "/home/zerochaos/ownCloud/Unison/" OCC::SyncScheduler::Priority::Low QueueSize: 0
23-10-27 15:47:09:221 [ info scheduler.syncscheduler ]:	Starting sync for "/home/zerochaos/ownCloud/Unison/"
23-10-27 15:47:09:222 [ info gui.application ]:	Sync state changed for folder  "https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/" :  "Preparing to sync"
23-10-27 15:47:09:222 [ info gui.folder ]:	*** Start syncing  "https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/" client version "ownCloud 5.0.0 8f9152 Libraries Qt 6.5.3, OpenSSL 3.1.3 19 Sep 2023 Using virtual files plugin: suffix OS: manjaro-6.1.55-1-MANJARO QPA: wayland"
23-10-27 15:47:09:222 [ info gui.folder ]:	Allowing local discovery to read from the database
23-10-27 15:47:09:222 [ debug sync.localdiscoverytracker ]	[ OCC::LocalDiscoveryTracker::startSyncPartialDiscovery ]:	partial discovery with paths:  QList("Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx")
23-10-27 15:47:09:222 [ info gui.folder.manager ]:	>========== Sync started for folder [ "ownCloud/Unison" ] of account [ "Sergey [email protected]" ] with remote [ "https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/" ]
23-10-27 15:47:09:222 [ info sync.engine ]:	There are "632 ГБ" available at "/home/zerochaos/ownCloud/Unison/"
23-10-27 15:47:09:222 [ info sync.engine ]:	Sync with existing sync journal
23-10-27 15:47:09:223 [ info sync.engine ]:	Using Qt  6.5.3  SSL library  "OpenSSL 3.1.3 19 Sep 2023"  on  "Manjaro Linux"
23-10-27 15:47:09:223 [ info sync.engine ]:	NOT Using Selective Sync
23-10-27 15:47:09:223 [ info sync.engine ]:	#### Discovery start ####################################################
23-10-27 15:47:09:223 [ info sync.engine ]:	Server "4.0.0+13f66cbf8" 
23-10-27 15:47:09:223 [ info sync.discovery ]:	STARTING "" OCC::ProcessDirectoryJob::NormalQuery "" OCC::ProcessDirectoryJob::NormalQuery
23-10-27 15:47:09:223 [ info sync.networkjob ]:	Created OCC::PropfindJob(OCC::Account("Sergey [email protected]"), "https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/", "PROPFIND", Original-Request-ID: "a3a11186-4996-492a-a42f-22cd63d15914", X-Request-ID: "a3a11186-4996-492a-a42f-22cd63d15914") for OCC::DiscoverySingleDirectoryJob(0x561a79e3cdf0)
23-10-27 15:47:09:223 [ info sync.httplogger ]:	"a3a11186-4996-492a-a42f-22cd63d15914: Request: PROPFIND https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/ Header: { Depth: 1, Prefer: return=minimal, Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Linux) mirall/5.0.0 (ownCloud, manjaro-6.1.55-1-MANJARO ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, Accept-Language: ru_RU, Content-Type: text/xml; charset=utf-8, X-Request-ID: a3a11186-4996-492a-a42f-22cd63d15914, Original-Request-ID: a3a11186-4996-492a-a42f-22cd63d15914, Content-Length: 467, } Data: [\n]"
23-10-27 15:47:09:251 [ info sync.httplogger ]:	"a3a11186-4996-492a-a42f-22cd63d15914: Response: PROPFIND 207 (27ms) https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/ Header: { Access-Control-Allow-Origin: *, Access-Control-Expose-Headers: Tus-Resumable, Tus-Version, Tus-Extension, Content-Security-Policy: default-src 'none';, Content-Type: application/xml; charset=utf-8, Date: Fri, 27 Oct 2023 12:47:09 GMT, Dav: 1, 3, extended-mkcol, Preference-Applied: return=minimal, Tus-Extension: creation,creation-with-upload,checksum,expiration, Tus-Resumable: 1.0.0, Tus-Version: 1.0.0, Vary: Prefer, X-Content-Type-Options: nosniff, X-Download-Options: noopen, X-Frame-Options: SAMEORIGIN, X-Permitted-Cross-Domain-Policies: none, X-Request-Id: a3a11186-4996-492a-a42f-22cd63d15914, X-Robots-Tag: none, X-Xss-Protection: 1; mode=block, Transfer-Encoding: chunked, } Data: [/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/Thu, 26 Oct 2023 21:17:35 GMT\"f26b26e0581eb0ef297fe3de5106dc8d\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!1047d316-24b7-424c-bbd0-14d5610f9b3fRDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/Temp/Mon, 23 Oct 2023 12:07:01 GMT\"a4ce9b20971890c30bc54b05a0ac1444\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!8ee65ee3-93a7-422b-8aa4-3a80c3b254beRDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/Manuals/Sun, 22 Oct 2023 15:50:08 GMT\"e8b779b9964f88ed5421e9fa6f61067c\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!b7f87c0c-e9d2-4a8a-83f3-add43c6ab16dRDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/Sites/Sun, 22 Oct 2023 11:17:52 GMT\"47af276f533d853f599593fa886f93d2\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!0495b7ea-52bc-4451-af20-5b060ebced72RDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/%D0%94%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D1%8B/Wed, 25 Oct 2023 14:54:10 GMT\"def5525e67d8240b8625f37109d5a776\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!d75a0dba-7795-4870-b632-5d8679e94cd1RDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/src/Sun, 22 Oct 2023 11:17:52 GMT\"d1431c2b9574fa3f4d668bd642e190f1\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!722e47c5-44e5-4ffc-9f8a-5f37784699f3RDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/%D0%94%D0%B5%D1%81%D0%BD%D0%BE%D0%BB/Thu, 26 Oct 2023 20:47:24 GMT\"758ef970407d6425fae99c16000b5fb4\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!08e3619f-4667-44b3-9160-1e29c7f92f79RDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/Wallpapers/Sun, 22 Oct 2023 07:53:19 GMT\"2a3cc1f0270727d16da992f0d41781fb\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!77f5831f-3127-46cd-be47-0f2ac82de3c4RDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/Photo/Sun, 22 Oct 2023 15:59:54 GMT\"284e4662d2eca7c23341f5d3ee1cf7a2\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!9528c810-97d9-4f53-b56d-cbe0983351e4RDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/cwd_balance.xlsxThu, 27 Apr 2023 20:11:10 GMT10949\"1688c9c24bb67a4289bf4f3232bbf8a2\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!f10d0082-5e36-40f9-95c2-b7b443030b07RDNVWZPSHA1:3b132824bf4ff981ecff5ee6c10df56c41e84eb0 MD5:7e4a35e9cf9ef84a68e2c3bd3d5e2259 ADLER32:b3f33267HTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/Public/Sun, 22 Oct 2023 16:01:46 GMT\"b2200269fab39e7ab89bc43f636073d8\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!bb2b60d4-946c-465c-a362-d0053aebc6a6RDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/ZeroChaos/Sun, 22 Oct 2023 22:52:04 GMT\"5824c6dafd27cd700d11d507ae2ffddb\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!18f07f61-7ea1-4bef-9285-db9ced9b9fdaRDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/3%20Iyulya.txtWed, 30 Mar 2022 12:15:47 GMT167\"f7026daf67b246303033731971c35d9e\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!e17e24ab-675a-4004-8b63-3326d3fbfff3RDNVWZPSHA1:43279a9cef328323f031359b583122f45d6f38e6 MD5:05a5a20549117d221622dc9dd44f5c3e ADLER32:cab23844HTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/Routers_Servers/Sun, 22 Oct 2023 20:19:20 GMT\"dba2bcb8fe52f5b009cb212465642a92\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!750e50c6-ccf1-49f0-9c40-bd247f9b4cb9RDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/Soft/Tue, 24 Oct 2023 15:04:30 GMT\"3e65514fd66bc03b4d80cbea5bd1d309\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!ce632390-0f19-4dcb-88ab-aa09ce009a51RDNVCKZPHTTP/1.1 200 OK/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/%D0%A2%D0%B5%D1%81%D1%82%20%D0%B4%D0%BB%D0%B8%D0%BD%D1%8B.txtThu, 26 Oct 2023 21:17:35 GMT2251\"0e75ce4890275fba44b9ae2545fbcbcf\"d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f!633f4788-e4a2-4b68-927a-87fe842f1fb6RDNVWZPSHA1:09e2ba6edea92ca55de7b410e8b9ed76f1096384 MD5:2988641a175ccfbd2b246ae20d013b63 ADLER32:e4e8fb76HTTP/1.1 200 OK]"
23-10-27 15:47:09:251 [ info sync.networkjob.propfind ]:	LSCOL of QUrl("https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/") FINISHED WITH STATUS "OK"
Discovery truncated
23-10-27 15:47:09:268 [ info sync.engine ]:	#### Discovery end ####################################################  45 ms
23-10-27 15:47:09:268 [ debug sync.database ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "Post discovery" and starting new transaction
23-10-27 15:47:09:268 [ info sync.engine ]:	#### Reconcile (aboutToPropagate) ####################################################  45 ms
23-10-27 15:47:09:268 [ debug sync.statustracker ]	[ OCC::SyncFileStatusTracker::slotAboutToPropagate ]:	Investigating "Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx" OCC::SyncFileItem::NoStatus CSyncEnums::CSYNC_INSTRUCTION_NEW
23-10-27 15:47:09:268 [ info sync.engine ]:	#### Reconcile (aboutToPropagate OK) ####################################################  45 ms
23-10-27 15:47:09:268 [ debug sync.database ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "post treewalk" and starting new transaction
23-10-27 15:47:09:268 [ debug sync.database.sql ]	[ OCC::SqlQuery::prepare ]:	SQL prepare "SELECT tmpfile, etag, errorcount, path FROM downloadinfo" Try: 0
23-10-27 15:47:09:268 [ debug sync.database.sql ]	[ OCC::SqlQuery::prepare ]:	SQL prepare "SELECT path,transferid FROM uploadinfo" Try: 0
23-10-27 15:47:09:268 [ debug sync.database ]	[ OCC::SyncJournalDb::deleteStaleUploadInfos ]:	QVector OCC::SyncJournalDb::deleteStaleUploadInfos(const QSet&) Keep: QSet("Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx") Removing Stale: QList()
23-10-27 15:47:09:268 [ debug sync.database.sql ]	[ OCC::SqlQuery::prepare ]:	SQL prepare "SELECT path FROM blacklist" Try: 0
23-10-27 15:47:09:268 [ debug sync.database.sql ]	[ OCC::SqlQuery::prepare ]:	SQL prepare "DELETE FROM blacklist WHERE path = ?" Try: 0
23-10-27 15:47:09:268 [ debug sync.database ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "post stale entry removal" and starting new transaction
23-10-27 15:47:09:268 [ debug sync.propagator ]	[ OCC::OwncloudPropagator::createJob ]:	Propagating: OCC::SyncFileItem(file="/", type=CSyncEnums::ItemTypeSkip, instruction=CSyncEnums::CSYNC_INSTRUCTION_NONE, status=OCC::SyncFileItem::NoStatus)
23-10-27 15:47:09:268 [ info sync.engine ]:	#### Post-Reconcile end ####################################################  45 ms
23-10-27 15:47:09:268 [ info gui.folder ]:	#### Propagation start ####################################################
23-10-27 15:47:09:269 [ info gui.application ]:	Sync state changed for folder  "https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/" :  "Sync running"
23-10-27 15:47:09:269 [ debug sync.propagator ]	[ OCC::OwncloudPropagator::createJob ]:	Propagating: OCC::SyncFileItem(file="Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx", type=CSyncEnums::ItemTypeFile, instruction=CSyncEnums::CSYNC_INSTRUCTION_NEW, status=OCC::SyncFileItem::NoStatus)
23-10-27 15:47:09:269 [ info sync.propagator ]:	Starting propagation of OCC::SyncFileItem(file="Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx", type=CSyncEnums::ItemTypeFile, instruction=CSyncEnums::CSYNC_INSTRUCTION_NEW, status=OCC::SyncFileItem::NoStatus) by OCC::PropagateUploadFileTUS(0x561a79a58660)
23-10-27 15:47:09:269 [ info sync.checksums ]:	Computing OCC::CheckSums::Algorithm::SHA1 checksum of "/home/zerochaos/ownCloud/Unison/Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx" in a thread
23-10-27 15:47:09:269 [ debug sync.checksums ]	[ OCC::ComputeChecksum::computeNow(QIODevice*, OCC::CheckSums::Algorithm):: ]:	Finished OCC::CheckSums::Algorithm::SHA1 computation for "/home/zerochaos/ownCloud/Unison/Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx" duration(0h, 0min, 0s, 0ms)
23-10-27 15:47:09:269 [ debug sync.propagator.upload.tus ]	[ OCC::PropagateUploadFileTUS::startNextChunk ]:	Starting creation with upload: "/Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx"
23-10-27 15:47:09:269 [ debug sync.propagator.upload.tus ]	[ OCC::PropagateUploadFileTUS::startNextChunk ]:	Offset: 0 0 Chunk: 46169 0
23-10-27 15:47:09:269 [ info sync.networkjob ]:	Created OCC::SimpleNetworkJob(OCC::Account("Sergey [email protected]"), "https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f", "POST", Original-Request-ID: "557326ce-ac84-4b79-be26-adcd76ba55af", X-Request-ID: "557326ce-ac84-4b79-be26-adcd76ba55af") for OCC::PropagateUploadFileTUS(0x561a79a58660)
23-10-27 15:47:09:270 [ info sync.httplogger ]:	"557326ce-ac84-4b79-be26-adcd76ba55af: Request: POST https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f Header: { X-OC-Mtime: 1698352254, Content-Type: application/offset+octet-stream, Content-Length: 46169, Upload-Offset: 0, Tus-Resumable: 1.0.0, Upload-Metadata: filename L9CU0LXRgdC90L7Quy/QoNCw0LfRgNCw0LHQvtGC0LrQsCDRgNC10LPQu9Cw0LzQtdC90YLQvtCyL9Cj0L/RgNCw0LLQu9C10L3QuNC1INC/0L7Qu9GM0LfQvtCy0LDRgtC10LvRj9C80Lgg0JjQoiDQuNC90YTRgNCw0YHRgtGA0YPQutGC0YPRgNGLINC60L7QvNC/0LDQvdC40LgvMjAyMy0wNS0xNSDQo9C/0YDQsNCy0LvQtdC90LjQtSDQv9C+0LvRjNC30L7QstCw0YLQtdC70Y/QvNC4INCY0KIg0LjQvdGE0YDQsNGB0YLRgNGD0LrRgtGD0YDRiyDQutC+0LzQv9Cw0L3QuNC4LmRvY3g=,checksum U0hBMSA2OTEzYmE1MWNjZGE5YjMxOTNmMGU4ZWQ5NTVkYTA1YTI2ZDI4NmFh,mtime MTY5ODM1MjI1NA==, Upload-Length: 46169, Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Linux) mirall/5.0.0 (ownCloud, manjaro-6.1.55-1-MANJARO ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, Accept-Language: ru_RU, X-Request-ID: 557326ce-ac84-4b79-be26-adcd76ba55af, Original-Request-ID: 557326ce-ac84-4b79-be26-adcd76ba55af, } Data: [46169 bytes of application/offset+octet-stream data]"
23-10-27 15:47:09:397 [ info sync.httplogger ]:	"557326ce-ac84-4b79-be26-adcd76ba55af: Response: POST 412 (Error: Error transferring https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f - server replied: Precondition Failed,127ms) https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f Header: { Access-Control-Allow-Origin: *, Content-Length: 0, Content-Security-Policy: default-src 'none';, Date: Fri, 27 Oct 2023 12:47:09 GMT, Vary: Origin, X-Content-Type-Options: nosniff, X-Download-Options: noopen, X-Frame-Options: SAMEORIGIN, X-Permitted-Cross-Domain-Policies: none, X-Request-Id: 557326ce-ac84-4b79-be26-adcd76ba55af, X-Robots-Tag: none, X-Xss-Protection: 1; mode=block, } Data: []"
23-10-27 15:47:09:397 [ debug sync.propagator.upload.tus ]	[ OCC::PropagateUploadFileTUS::slotChunkFinished ]:	"/Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx" "POST"
23-10-27 15:47:09:398 [ debug sync.propagator.upload ]	[ OCC::PropagateUploadFileCommon::commonErrorHandling ]:	""
23-10-27 15:47:09:398 [ debug sync.database.sql ]	[ OCC::SqlQuery::prepare ]:	SQL prepare "UPDATE metadata SET md5='_invalid_' WHERE (?1 == path OR (?1 > (path||'/') AND ?1 < (path||'0'))) AND type == 2;" Try: 0
23-10-27 15:47:09:398 [ debug sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec: Estimated query: "UPDATE metadata SET md5='_invalid_' WHERE ('Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx' == path OR (?1 > (path||'/') AND ?1 < (path||'0'))) AND type == 2;" Actual query: "UPDATE metadata SET md5='_invalid_' WHERE ('Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx' == path OR ('Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx' > (path||'/') AND 'Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx' < (path||'0'))) AND type == 2;" Try: 0
23-10-27 15:47:09:399 [ debug sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 3 rows.
23-10-27 15:47:09:399 [ info sync.propagator.upload ]:	Error count for maybe-reset error 412 on file "Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx" is 1
23-10-27 15:47:09:399 [ debug sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec: "DELETE FROM uploadinfo WHERE path=?1" Try: 0
23-10-27 15:47:09:399 [ debug sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
23-10-27 15:47:09:399 [ debug sync.database ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "Upload info" and starting new transaction
23-10-27 15:47:09:399 [ warning sync.propagator.upload ]:	void OCC::PropagateUploadFileCommon::abortWithError(OCC::SyncFileItem::Status, const QString&) "Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx" "Сервер ответил от \"412 Precondition Failed\" до \"POST https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f\""
23-10-27 15:47:09:399 [ info sync.database ]:	Setting blacklist entry for "Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx" 1 "Сервер ответил от \"412 Precondition Failed\" до \"POST https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f\"" 1698410829 25 1698352254 "" "" OCC::SyncJournalErrorBlacklistRecord::Category::Normal
23-10-27 15:47:09:399 [ debug sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec: "INSERT OR REPLACE INTO blacklist (path, lastTryEtag, lastTryModtime, retrycount, errorstring, lastTryTime, ignoreDuration, renameTarget, errorCategory, requestId) VALUES ( ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10)" Try: 0
23-10-27 15:47:09:399 [ debug sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 1 rows.
23-10-27 15:47:09:399 [ info sync.propagator ]:	blacklisting  "Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx"  for  25 , retry count  1
23-10-27 15:47:09:399 [ warning sync.propagator ]:	Could not complete propagation of "Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx" by OCC::PropagateUploadFileTUS(0x561a79a58660) with status OCC::SyncFileItem::SoftError and error: "Сервер ответил от \"412 Precondition Failed\" до \"POST https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f\""
23-10-27 15:47:09:399 [ debug sync.statustracker ]	[ OCC::SyncFileStatusTracker::slotItemCompleted ]:	Item completed "Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx" OCC::SyncFileItem::SoftError CSyncEnums::CSYNC_INSTRUCTION_NEW
23-10-27 15:47:09:400 [ debug sync.localdiscoverytracker ]	[ OCC::LocalDiscoveryTracker::slotItemCompleted ]:	inserted error item "Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx"
23-10-27 15:47:09:400 [ debug sync.networkjob ]	[ OCC::AbstractNetworkJob::slotFinished ]:	Network job finished OCC::SimpleNetworkJob(OCC::Account("Sergey [email protected]"), "https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f", "POST", Original-Request-ID: "557326ce-ac84-4b79-be26-adcd76ba55af", X-Request-ID: "557326ce-ac84-4b79-be26-adcd76ba55af", NetworkError: "Error transferring https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f - server replied: Precondition Failed")
23-10-27 15:47:09:406 [ debug sync.database.sql ]	[ OCC::SqlQuery::prepare ]:	SQL prepare "SELECT path FROM conflicts" Try: 0
23-10-27 15:47:09:406 [ info sync.engine ]:	Updating files marked as dirty
23-10-27 15:47:09:406 [ debug sync.database.sql ]	[ OCC::SqlQuery::prepare ]:	SQL prepare "DELETE FROM flags WHERE path != '' AND path NOT IN (SELECT path from metadata);" Try: 0
23-10-27 15:47:09:406 [ debug sync.database.sql ]	[ OCC::SqlQuery::exec ]:	SQL exec: "DELETE FROM flags WHERE path != '' AND path NOT IN (SELECT path from metadata);" Try: 0
23-10-27 15:47:09:406 [ debug sync.database.sql ]	[ OCC::SqlQuery::exec ]:	Last exec affected 0 rows.
23-10-27 15:47:09:406 [ debug sync.database ]	[ OCC::SyncJournalDb::commitInternal ]:	Transaction commit "All Finished." 
23-10-27 15:47:09:407 [ info sync.engine ]:	Sync run took  184 ms
23-10-27 15:47:09:407 [ debug sync.localdiscoverytracker ]	[ OCC::LocalDiscoveryTracker::slotSyncFinished ]:	sync failed, keeping last sync's local discovery path list
23-10-27 15:47:09:407 [ info gui.folder ]:	Client version "ownCloud 5.0.0 8f9152 Libraries Qt 6.5.3, OpenSSL 3.1.3 19 Sep 2023 Using virtual files plugin: suffix OS: manjaro-6.1.55-1-MANJARO QPA: wayland"
23-10-27 15:47:09:407 [ info gui.folder ]:	SyncEngine finished without problem.
23-10-27 15:47:09:407 [ info gui.folder ]:	Folder "/home/zerochaos/ownCloud/Unison/" sync result:  OCC::SyncResult::SyncRunning
23-10-27 15:47:09:407 [ info gui.application ]:	Sync state changed for folder  "https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/" :  "Success, some files were ignored."
23-10-27 15:47:09:407 [ info gui.folder ]:	another sync was requested by the finished sync, this has happened 1 times
23-10-27 15:47:09:407 [ info gui.folder.manager ]:	<========== Sync finished for folder [ "ownCloud/Unison" ] of account [ "Sergey [email protected]" ] with remote [ "https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f/" ]

@TheOneRing
Copy link
Contributor

23-10-27 15:47:09:270 [ info sync.httplogger ]:	"557326ce-ac84-4b79-be26-adcd76ba55af: Request: POST https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f Header: { X-OC-Mtime: 1698352254, Content-Type: application/offset+octet-stream, Content-Length: 46169, Upload-Offset: 0, Tus-Resumable: 1.0.0, Upload-Metadata: filename L9CU0LXRgdC90L7Quy/QoNCw0LfRgNCw0LHQvtGC0LrQsCDRgNC10LPQu9Cw0LzQtdC90YLQvtCyL9Cj0L/RgNCw0LLQu9C10L3QuNC1INC/0L7Qu9GM0LfQvtCy0LDRgtC10LvRj9C80Lgg0JjQoiDQuNC90YTRgNCw0YHRgtGA0YPQutGC0YPRgNGLINC60L7QvNC/0LDQvdC40LgvMjAyMy0wNS0xNSDQo9C/0YDQsNCy0LvQtdC90LjQtSDQv9C+0LvRjNC30L7QstCw0YLQtdC70Y/QvNC4INCY0KIg0LjQvdGE0YDQsNGB0YLRgNGD0LrRgtGD0YDRiyDQutC+0LzQv9Cw0L3QuNC4LmRvY3g=,checksum U0hBMSA2OTEzYmE1MWNjZGE5YjMxOTNmMGU4ZWQ5NTVkYTA1YTI2ZDI4NmFh,mtime MTY5ODM1MjI1NA==, Upload-Length: 46169, Authorization: Bearer [redacted], User-Agent: Mozilla/5.0 (Linux) mirall/5.0.0 (ownCloud, manjaro-6.1.55-1-MANJARO ClientArchitecture: x86_64 OsArchitecture: x86_64), Accept: */*, Accept-Language: ru_RU, X-Request-ID: 557326ce-ac84-4b79-be26-adcd76ba55af, Original-Request-ID: 557326ce-ac84-4b79-be26-adcd76ba55af, } Data: [46169 bytes of application/offset+octet-stream data]"
23-10-27 15:47:09:397 [ info sync.httplogger ]:	"557326ce-ac84-4b79-be26-adcd76ba55af: Response: POST 412 (Error: Error transferring https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f - server replied: Precondition Failed,127ms) https://example.org/dav/spaces/d13c8bc6-b583-456b-9fcf-66d9fd5fcf7b$1047d316-24b7-424c-bbd0-14d5610f9b3f Header: { Access-Control-Allow-Origin: *, Content-Length: 0, Content-Security-Policy: default-src 'none';, Date: Fri, 27 Oct 2023 12:47:09 GMT, Vary: Origin, X-Content-Type-Options: nosniff, X-Download-Options: noopen, X-Frame-Options: SAMEORIGIN, X-Permitted-Cross-Domain-Policies: none, X-Request-Id: 557326ce-ac84-4b79-be26-adcd76ba55af, X-Robots-Tag: none, X-Xss-Protection: 1; mode=block, } Data: []"

@TheOneRing
Copy link
Contributor

Upload-Metadata: filename:

L9CU0LXRgdC90L7Quy/QoNCw0LfRgNCw0LHQvtGC0LrQsCDRgNC10LPQu9Cw0LzQtdC90YLQvtCyL9Cj0L/RgNCw0LLQu9C10L3QuNC1INC/0L7Qu9GM0LfQvtCy0LDRgtC10LvRj9C80Lgg0JjQoiDQuNC90YTRgNCw0YHRgtGA0YPQutGC0YPRgNGLINC60L7QvNC/0LDQvdC40LgvMjAyMy0wNS0xNSDQo9C/0YDQsNCy0LvQtdC90LjQtSDQv9C+0LvRjNC30L7QstCw0YLQtdC70Y/QvNC4INCY0KIg0LjQvdGE0YDQsNGB0YLRgNGD0LrRgtGD0YDRiyDQutC+0LzQv9Cw0L3QuNC4LmRvY3g=
/Деснол/Разработка регламентов/Управление пользователями ИТ инфраструктуры компании/2023-05-15 Управление пользователями ИТ инфраструктуры компании.docx

@TheOneRing TheOneRing transferred this issue from owncloud/client Oct 27, 2023
@TheOneRing TheOneRing changed the title Check the path length in Unicode for 255 characters rather than 255 bytes Tus upload: Check the path length in Unicode for 255 characters rather than 255 bytes Oct 27, 2023
@TheOneRing TheOneRing changed the title Tus upload: Check the path length in Unicode for 255 characters rather than 255 bytes Tus upload: The file name limit of 255bytes is applied against the file path Oct 27, 2023
@TheOneRing
Copy link
Contributor

The problem is that ocis checks the file filename metadata against the limit of 255 bytes, but filename contains the full path relative to the space.

@kobergj kobergj self-assigned this Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants