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

NaturalHistoryMuseum / ckanext-ldap
50%
main: 43%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: main
Repo Added 18 Jan 2018 03:37PM UTC
Files 14
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

LAST BUILD ON BRANCH josh/ldap_action_not_calling_auth
branch: josh/ldap_action_not_calling_auth
CHANGE BRANCH
x
Reset
  • josh/ldap_action_not_calling_auth
  • 116-support-ckan-2.10
  • HEAD
  • ckan-upgrade-2.8.0a
  • dev
  • ginger/2.11
  • ginger/citation-version
  • ginger/community-health
  • ginger/conftest
  • ginger/docker-compose-cmd
  • ginger/docker-latest
  • ginger/docs
  • ginger/error-msg
  • ginger/gabby-fixes
  • ginger/include-migration
  • ginger/merge-commit-type
  • ginger/python-setup-version
  • ginger/readme
  • ginger/rtd-config-update
  • ginger/standardisation
  • ginger/standardise
  • ginger/sync-branch-workflow
  • ginger/theme-folder
  • ginger/update-logos
  • josh/210issues
  • josh/ckan-upgrade-2.9
  • josh/fix-docker-postgres-start-error
  • josh/fix-missing-attr-issue
  • josh/fix-missing-attr-issue-backport
  • josh/fix_210_tests
  • josh/fix_tests
  • josh/run_210_tests_too
  • josh/test_on_210
  • main
  • master
  • patch
  • v2.1.0
  • v3.0.0

pending completion
48

Pull #58

travis-ci

web-flow
Prevent an exception being thrown due to context reuse

If you reuse a context dict after it is used on a failed call you may
get an exception like this: "Action function <action> did not call its
auth function". This is what was happening here where we used the action
"organization_show" to check if the organisation already existed or not
and then if it didn't, create it. The context is reused so the auth
check exception was thrown. Simply removing the auth audit solves the
problem. This PR on ckanext-harvest exhibits the same problem:
https://github.com/ckan/ckanext-harvest/issues/84 and it is fixed in the
same way as we do in this commit, in this commit on ckanext-harvest:
https://github.com/ckan/ckanext-harvest/commit/f315f41c8.
Pull Request #58: Prevent an exception being thrown due to context reuse

2 of 4 relevant lines covered (50.0%)

0.5 hits per line

Relevant lines Covered
Build:
Build:
4 RELEVANT LINES 2 COVERED LINES
0.5 HITS PER LINE
Source Files on josh/ldap_action_not_calling_auth
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
48 josh/ldap_action_not_calling_auth Prevent an exception being thrown due to context reuse If you reuse a context dict after it is used on a failed call you may get an exception like this: "Action function <action> did not call its auth function". This is what was happening here wh... Pull #58 14 Aug 2019 08:49AM UTC web-flow travis-ci pending completion  
47 josh/ldap_action_not_calling_auth <a href="https://github.com/NaturalHistoryMuseum/ckanext-ldap/commit/0b3d76cbb">&lt;a href=&quot;https://github.com/NaturalHistoryMuseum/ckanext-ldap/commit/</a><a class="double-link" href="https://github.com/Natural... push 14 Aug 2019 08:48AM UTC jrdh travis-ci pending completion  
See All Builds (364)
  • Repo 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

© 2025 Coveralls, Inc