We have a custom type, that only has a uniq headline (in german) and a text field

This gets exported as
customTypes: [
{
configName: "article",
queryString: "api::article.article",
uid: ["headline"],
},
]
On the filesystem you then have files like
strapi-app/config/sync$ ls -lh article.*
-rw-r--r-- 1 jnachtigall jnachtigall 517 Aug 30 16:44 'article.Benötige ich eine wasserrechtliche Erlaubnis?.json'
-rw-r--r-- 1 jnachtigall jnachtigall 575 Aug 30 16:44 'article.Gibt es Fälle, in denen ich keine Anzeige stellen kann?.json'
-rw-r--r-- 1 jnachtigall jnachtigall 436 Aug 30 16:44 'article.Wie kann ich mich authentifizieren $ anmelden?.json'
This works fine on Linux or in WSL2. However, on Windows this results in these git errors
$ git -c credential.helper= -c core.quotepath=false -c log.showSignature=false rebase origin/develop
error: invalid path 'strapi-app/config/sync/article.Benötige ich eine wasserrechtliche Erlaubnis?.json'
error: invalid path 'strapi-app/config/sync/article.Gibt es Fälle, in denen ich keine Anzeige stellen kann?.json'
error: invalid path 'strapi-app/config/sync/article.Wie kann ich mich authentifizieren $ anmelden?.json'
error: could not detach HEAD
This seems like a pretty well known error, see https://stackoverflow.com/questions/63727594/github-git-checkout-returns-error-invalid-path-on-windows
FWIW, doing the suggested git config core.protectNTFS false did not work for us (resulted in read/write errors and a bluescreen).
We worked around the issue by adding a field articleId with integer to the above custom type and used this as uid instead.
Not sure you want to fix this in your plugin, but maybe a encoding/decoding of non-ascii characters would be good in the filename?
System
- Node.js version: 16.13.0
- NPM version: 8.3.1
- Strapi version: 4.3.0
- Plugin version: 1.0.2
- Database: Postgres Docker image
- Operating system: WSL2 in Windows
We have a custom type, that only has a uniq
headline(in german) and atextfieldThis gets exported as
On the filesystem you then have files like
This works fine on Linux or in WSL2. However, on Windows this results in these
giterrorsThis seems like a pretty well known error, see https://stackoverflow.com/questions/63727594/github-git-checkout-returns-error-invalid-path-on-windows
FWIW, doing the suggested
git config core.protectNTFS falsedid not work for us (resulted in read/write errors and a bluescreen).We worked around the issue by adding a field
articleIdwithintegerto the above custom type and used this asuidinstead.Not sure you want to fix this in your plugin, but maybe a encoding/decoding of non-ascii characters would be good in the filename?
System