• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hypothesis / h / 9256
70%
master: 97%

Build:
Build:
LAST BUILD BRANCH: realtime-update-v1-h-only-1
DEFAULT BRANCH: master
Ran 07 Dec 2015 04:02PM UTC
Jobs 1
Files 91
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
9256

push

travis-ci

nickstenning
Compute annotation authorizations correctly in streamer

Most authorisations on annotations are granted by virtue of a dynamic
ACL computed in `h.api.resources.Annotation`. This class uses
`h.api.auth.translate_annotation_principals` to map between annotation
permissions strings (such as "group:__world__") and internal Pyramid
principals such as `pyramid.security.Everyone` (AKA "system.Everyone").

The streamer has historically not used this ACL, and as a result a bug
was introduced where world-readable annotations were not sent to
logged-out clients.

This commit:

- Ensures that `h.api.groups.auth.group_principals` doesn't include
  "group:__world__" in the list of group principals for a given user.
  This principal is already represented by the "system.Everyone"
  principal which Pyramid already grants to *all* requests.
- Uses `h.api.auth.translate_annotation_principals` in `h.streamer` to
  ensure that annotation permissions strings are correctly compared with
  `request.effective_principals`.

4 of 4 new or added lines in 2 files covered. (100.0%)

2577 of 3675 relevant lines covered (70.12%)

0.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9256.1 07 Dec 2015 04:02PM UTC 0
70.12
Travis Job 9256.1
Source Files on build 9256
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9256
  • 3c446a01 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc