-
Notifications
You must be signed in to change notification settings - Fork 739
Add unescape to getAllType function #6804
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
base: master
Are you sure you want to change the base?
Add unescape to getAllType function #6804
Conversation
This is used in the reencode encrypted fields function
|
The recode function didn't work properly because of the missing unescape in the getalltype function. That triggered this. |
|
@si458 I think a full check on the mongo/nedb un/escape db functions is necessary to do this properly. |
|
@si458 Checked some of the functions used throughout the application for the different (un)escapes, here for example is the specific acebase db escapes, beside the nedb escapes. The only escape needed for mongo (v3.6 onward) is that a field must not start with a '$'. Is it an idea to eliminate the need for escapes at all by generating the identifiers with something like crypto.randomUUID() or the UUID package? That would remove a lot of overhead, room for mistakes and make it future-proof and more db agnostic. |
Have you already spoken about it in the Monthly meetings, seems like a good plan! |
|
@DaanSelen Uhm, monthly meetings? Don't know about that. |
Every last thursday of the month we meet in a voice/video call and discuss the state of MeshCentral, what's new and what's coming. If you can, join us (I can't make it this thursday). Here for reference: https://github.com/Ylianst/MeshCentral/wiki/Community-Monthly-Meetings |
|
Ah oké, thanks, will check it. |
|
Lets get this PR out of limbo and into the master! |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This pull request has been automatically closed due to inactivity. If you'd like to continue working on it, please reopen it. |
@si458 is this closing in order? Or a mistake? |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Not stale |
And what's preventing Merge? @si458 |
This is used in the recode encrypted fields function
Some db functions have the un/escape in the function, but not all. For some it is done in app after the get.
I would propose to move it to the db functions instead of having to not forget it at the application level. I haven't checked all functions, but the GetAll function also doesn't do the unescaping for you.
@si458 What do you think?