You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by Apache Bloodhound <de...@bloodhound.apache.org> on 2013/06/17 13:55:01 UTC
[Apache Bloodhound] #559: FineGrainedPermissions and Search
#559: FineGrainedPermissions and Search
-------------------------+---------------------
Reporter: astaric | Owner: astaric
Type: enhancement | Status: new
Priority: major | Milestone:
Component: dashboard | Version:
Keywords: |
-------------------------+---------------------
Consider FineGrainedPermissions (if enabled) when performing searches.
Results should only include resources visible by the user.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/559>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #559: FineGrainedPermissions and Search
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#559: FineGrainedPermissions and Search
--------------------------+-------------------------
Reporter: astaric | Owner: astaric
Type: enhancement | Status: closed
Priority: major | Milestone: Release 6
Component: search | Version:
Resolution: fixed | Keywords: permissions
--------------------------+-------------------------
Comment (by rjollos):
After r1503558 I'm seeing:
{{{
(bh)user@ubuntu:~/Workspace/bh579/bloodhound/bloodhound_search$
PYTHONPATH=. python ./bhsearch/tests/__init__.py
...............s...s.................................................................................................................................................s...s
----------------------------------------------------------------------
Ran 170 tests in 4.847s
OK (skipped=4)
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/559#comment:4>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #559: FineGrainedPermissions and Search
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#559: FineGrainedPermissions and Search
--------------------------+-------------------------
Reporter: astaric | Owner: astaric
Type: enhancement | Status: closed
Priority: major | Milestone: Release 6
Component: search | Version:
Resolution: fixed | Keywords: permissions
--------------------------+-------------------------
Changes (by rjollos):
* keywords: => permissions
* component: dashboard => search
* milestone: => Release 6
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/559#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #559: FineGrainedPermissions and Search
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#559: FineGrainedPermissions and Search
--------------------------+---------------------
Reporter: astaric | Owner: astaric
Type: enhancement | Status: closed
Priority: major | Milestone:
Component: dashboard | Version:
Resolution: fixed | Keywords:
--------------------------+---------------------
Changes (by astaric):
* status: new => closed
* resolution: => fixed
Comment:
Implemented in r1493719.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/559#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #559: FineGrainedPermissions and Search
Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#559: FineGrainedPermissions and Search
--------------------------+-------------------------
Reporter: astaric | Owner: astaric
Type: enhancement | Status: closed
Priority: major | Milestone: Release 6
Component: search | Version:
Resolution: fixed | Keywords: permissions
--------------------------+-------------------------
Comment (by rjollos):
[1493719] resulted in many unit test failures (output below has been
truncated):
{{{
(bh)user@ubuntu:~/Workspace/bh579/bloodhound/bloodhound_search$
PYTHONPATH=. python ./bhsearch/tests/__init__.py
...............s...s....................FF.EEEE.F....EF..FF...EF........E....E.E.E..EE.FE............................................................................s...s
======================================================================
ERROR: test_can_create_href_for_facet_counts
(bhsearch.tests.web_ui.WebUiTestCaseWithWhoosh)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/user/Workspace/bh579/bloodhound/bloodhound_search/bhsearch/tests/web_ui.py",
line 231, in test_can_create_href_for_facet_counts
self.assertEquals(1, status_counts["new"]["count"])
KeyError: 'new'
[...]
======================================================================
FAIL: test_ticket_href (bhsearch.tests.web_ui.WebUiTestCaseWithWhoosh)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/user/Workspace/bh579/bloodhound/bloodhound_search/bhsearch/tests/web_ui.py",
line 139, in test_ticket_href
self.assertEqual(1, len(docs))
AssertionError: 1 != 0
----------------------------------------------------------------------
Ran 170 tests in 4.977s
FAILED (failures=8, errors=13, skipped=4)
}}}
I've made a change to get the unit tests to pass, but I'm not sure it is
the right change to make. Could you check?
----
(In [1503558])
Fix unit test failures that seem to be caused by enforcement of
permissions after r1493719. Refs #559.
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/559#comment:3>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker