Losing http sent filters when adding role filter

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 ?

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

ok
so 1.7.6
with a myslq database

Recreated.
Check here for status:

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

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

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

1 Like

looking forward to test that !

Thanks for finding that @stadja !

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

Thanks for reporting it!