Losing http sent filters when adding role filter


#1

Hello,
I am a big fan of Dreamfactory, but I am facing to a real bug, I think !

My usecase is simple:

I’ve got a blog and I retrieve my post with this get call:
/rest/stadjadb/posts?limit=5&offset=5&order=id+DESC
And this work well.

Now, I would like the guest users to only recover the published post.

So in my admin console I created a role and I configurated it.
To the service access, I used a
"Service": stadjadb - “comoponent” : posts + “access” : Get

and I added it an advanced filter:
“field” : published - “operator” : = - “value”: true

And now, my /rest/stadjadb/posts?limit=5&offset=5&order=id+DESC http call, there are no filters taken into account, EXCEPT the published=true filter. (so, no order, no limit and no offset)

Please, help ?


#6

Let me duplicate this one, that looks like it should work.


#7

ok
so 1.7.6
with a myslq database


#8

Recreated.
Check here for status:

https://github.com/dreamfactorysoftware/dsp-core/issues/35


#9

Hey that’s cool,
I’m happy to help you improve this very cool tool !


#10

This issue is fixed in the develop branch of the lib-php-common-platform repo and will be in the next release.
https://github.com/dreamfactorysoftware/lib-php-common-platform/commit/68479f11bcb74672c3d6db324cc3a3e441846884


#11

looking forward to test that !


#12

Thanks for finding that @stadja !


#13

just upgraded from 1.7.8 to 1.8.
Works like a charm, thank you !


#14

Thanks for reporting it!