loopback icon indicating copy to clipboard operation
loopback copied to clipboard

principalId $owner has a security error?

Open dv3000 opened this issue 11 years ago • 7 comments

I think I found a bug, but I'm not 100% sure if it is my mistake ...

according to this line of code https://github.com/strongloop/loopback/blob/master/lib/application.js#L301-L306

I can do something like this: http://localhost:8001/v1/collection/findOne?access_token=mycurrenttoken&filter[where][id]=id-2&id=id-1 or http://localhost:8001/v1/collection?access_token=mycurrenttoken&filter[where][id]=id-2&id=id-1 and get a list That makes the "findOne" validate the id 1 and the "filters" I seek the id 2

the model has this ACL: { "accessType": "*", "principalType": "ROLE", "principalId": "$everyone", "permission": "DENY" }, { "accessType": "EXECUTE", "principalType": "ROLE", "principalId": "$owner", "permission": "ALLOW" }

someone else can reproduce the error??

sorry my english is verry poor

dv3000 avatar Mar 29 '15 04:03 dv3000

Can you provide a link to a test project on Github? See https://github.com/strongloop/loopback/wiki/Issues#bug-report

superkhau avatar Mar 30 '15 15:03 superkhau

@superkhau I'm pretty sure I posted an answer to this - did you delete it?

fabien avatar Mar 30 '15 16:03 fabien

@fabien No, but I may have closed it? Can you reference your fix to this issue?

superkhau avatar Mar 30 '15 16:03 superkhau

@superkhau wish I could find it ... I searched for other issues by @dv3000 to see if I I posted to a duplicate, but apparently this is the only issue sofar.

fabien avatar Mar 30 '15 16:03 fabien

Ok, well it will show up eventually. I will leave it open for now until its found and referenced properly. TY.

superkhau avatar Mar 30 '15 17:03 superkhau

@superkhau found it: https://github.com/strongloop/loopback/issues/238#issuecomment-87349410

fabien avatar Mar 31 '15 06:03 fabien

@fabien Thanks for finding the reference. I will close it since it is a duplicate of the issue you referenced.

superkhau avatar Mar 31 '15 21:03 superkhau

@JoshuaPostel Thanks! Fixed by https://github.com/iterative/dvc/commit/9c2c2b307dc44e5d3b9fc0f306d2f0a79a7b1d11

efiop avatar Dec 09 '19 23:12 efiop

@JoshuaPostel We will release 0.75.1 soon, but for now you could pip install botocore as a workaround.

efiop avatar Dec 09 '19 23:12 efiop

@efiop, could you release this one today?

ghost avatar Dec 10 '19 20:12 ghost

@mroutis yes, will try to do it right now.

efiop avatar Dec 10 '19 21:12 efiop

Release is building: https://github.com/iterative/dvc/releases/tag/0.75.1 . Pip will be ready in an hour or so, other packages later today/tomorrow.

efiop avatar Dec 10 '19 21:12 efiop

Thanks a lot, @efiop :slightly_smiling_face:

ghost avatar Dec 10 '19 21:12 ghost