You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During CLP validation there is a regEx allowing exactly 10 chars:
constuserIdRegex=/^[a-zA-Z0-9]{10}$/;
This leads to a problem: if you decide to change objectIdSize:
CLP for user with id.length != 10 won't be accepted by schema controller.
Same for custom ids.
Steps to reproduce
Launch server with objectIdSize: 11
it('should aceept class-level permission for custom userid of any length',asyncdone=>{awaitglobal.reconfigureServer({customIdSize: 11,});constid='e1evenChars';const{ data }=awaitrequest({method: 'POST',url: 'http://localhost:8378/1/schemas/AClass',headers: masterKeyHeaders,json: true,body: {classLevelPermissions: {find: {[id]: true,},},},});expect(data.classLevelPermissions.find[id]).toBe(true);done();});
Expected Results
schema is accepted
Actual Outcome
'e1evenChars' is not a valid key for class level permissions
Environment Setup
Server
parse-server version (Be specific! Don't say 'latest'.) : 3.10.0
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
During CLP validation there is a regEx allowing exactly 10 chars:
This leads to a problem: if you decide to change
objectIdSize
:CLP for user with
id.length != 10
won't be accepted by schema controller.Same for custom ids.
Steps to reproduce
objectIdSize: 11
Expected Results
schema is accepted
Actual Outcome
'e1evenChars' is not a valid key for class level permissions
Environment Setup
The text was updated successfully, but these errors were encountered: