# Losing http sent filters when adding role filter

**URL:** <https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315>\
**Category:** REST API\
**Created:** [September 4, 2014, 12:50pm UTC](https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315 "2014-09-04T12:50:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![stadja](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@stadja](https://community.dreamfactory.com/u/stadja)\
**Post date:** [September 4, 2014, 12:50pm UTC](https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315/1 "2014-09-04T12:50:57Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![Jason](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jason/32/1194_2.png) [@Jason](https://community.dreamfactory.com/u/Jason)\
**Post date:** [September 4, 2014, 8:29pm UTC](https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315/6 "2014-09-04T20:29:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![stadja](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@stadja](https://community.dreamfactory.com/u/stadja)\
**Post date:** [September 4, 2014, 8:30pm UTC](https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315/7 "2014-09-04T20:30:50Z")

</div>

ok  
so 1.7.6  
with a myslq database

---

<div class="post-metadata">

**Author:** ![Jason](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jason/32/1194_2.png) [@Jason](https://community.dreamfactory.com/u/Jason)\
**Post date:** [September 4, 2014, 8:58pm UTC](https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315/8 "2014-09-04T20:58:57Z")

</div>

Recreated.  
Check here for status:

[https://github.com/dreamfactorysoftware/dsp-core/issues/35](https://github.com/dreamfactorysoftware/dsp-core/issues/35)

---

<div class="post-metadata">

**Author:** ![stadja](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@stadja](https://community.dreamfactory.com/u/stadja)\
**Post date:** [September 5, 2014, 7:23am UTC](https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315/9 "2014-09-05T07:23:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![leehicks](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/leehicks/32/55_2.png) [@leehicks](https://community.dreamfactory.com/u/leehicks)\
**Post date:** [September 5, 2014, 5:19pm UTC](https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315/10 "2014-09-05T17:19:21Z")

</div>

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](https://github.com/dreamfactorysoftware/lib-php-common-platform/commit/68479f11bcb74672c3d6db324cc3a3e441846884)

---

<div class="post-metadata">

**Author:** ![stadja](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@stadja](https://community.dreamfactory.com/u/stadja)\
**Post date:** [September 5, 2014, 6:22pm UTC](https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315/11 "2014-09-05T18:22:49Z")

</div>

looking forward to test that !

---

<div class="post-metadata">

**Author:** ![Jason](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jason/32/1194_2.png) [@Jason](https://community.dreamfactory.com/u/Jason)\
**Post date:** [September 6, 2014, 3:46pm UTC](https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315/12 "2014-09-06T15:46:15Z")

</div>

Thanks for finding that @stadja !

---

<div class="post-metadata">

**Author:** ![stadja](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@stadja](https://community.dreamfactory.com/u/stadja)\
**Post date:** [October 10, 2014, 8:34pm UTC](https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315/13 "2014-10-10T20:34:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jason](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jason/32/1194_2.png) [@Jason](https://community.dreamfactory.com/u/Jason)\
**Post date:** [October 11, 2014, 2:00am UTC](https://community.dreamfactory.com/t/losing-http-sent-filters-when-adding-role-filter/315/14 "2014-10-11T02:00:31Z")

</div>

Thanks for reporting it!
