-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Use documentId as the unique identifier #65
Comments
Allright. Thanks for the bug report. The uid will be used in the filename and therefor cannot contain characters which are not supported in filenames on your OS. As you suggested we need to encode the uid value to be a valid filename, and we also need to be able to decode that filename back to it’s original state. Otherwise we can’t match the uid value in the DB. I’m not planning on fixing this any time soon, but I’ll leave it open for reference. In your case it is best to use another field as the uid. You could create an extra field of type uid which encodes the headline field and saves that in the DB in a seperate field. Than that seperate field can be the uid for your custom config type. |
We might have to consider dropping the |
I'm rebranding this issue from a I would like to see a new major version of the plugin with a proper I would suggest we inject a |
uid
with non-ascii chars gives error: invalid path
on Windowsuuid
as the unique identifier
With Strapi 5 being stable, we might be able to use it's CUID documentId as the unique identifier of config types. |
I just realised that by using the document ID as the unique identifier we lose the ability to exclude certain configs by default. Those configs are excluded here and are referenced by their names. If we were to use the document ID, that would mean that the names will be different for every instance using this plugin. Losing the ability to exclude these by default. Soo.. I'll likely stick to the uid system as it is. Something that we could do is make the |
uuid
as the unique identifier
We have a custom type, that only has a uniq
headline
(in german) and atext
fieldThis 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
git
errorsThis 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
withinteger
to the above custom type and used this asuid
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
The text was updated successfully, but these errors were encountered: