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

lkiesow / pyCA
92%
master: %

Build:
Build:
LAST BUILD BRANCH: rm-axios
DEFAULT BRANCH: master
Repo Added 02 Sep 2020 10:46PM UTC
Token XRqdvizXx83nRG1bRr7ZKUnC3lUmbUo1Z regen
Build 54 Last
Files 16
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 no-pass
branch: no-pass
CHANGE BRANCH
x
Reset
Sync Branches
  • no-pass
  • 400
  • all-command
  • allow-reupload-finished-uploads
  • bandit
  • cfg-file
  • check-merge-conflict
  • codeql-pycurl
  • container-docs
  • coveralls-github
  • default-reload
  • dep-updates
  • dont-show-active-event-twice
  • drop-ui-server
  • el8-flask
  • fix-bandit
  • fix-reupload
  • flake8-err
  • flask-version
  • github-actions
  • install-docs
  • js-up
  • master
  • no-dc-upload
  • npm-updates
  • prometheus-client-version
  • rm-axios
  • schedule
  • selenium
  • serve-api-events
  • skip-catalog-ingest-option
  • sont-run-on-dependabot-twice
  • test
  • test-request-data
  • title
  • toc
  • vue-components

18 Aug 2023 08:02PM UTC coverage: 91.524%. First build
5906618815

push

github

lkiesow
Fix configuration without authentication

If an empty password was configured in the user interface configuration,
instead of requiring no authentication, pyCA would throw an internal
server error:

```
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lars/dev/opencast/pyCA/pyca/ui/utils.py", line 16, in decorated
    or auth.username != config('ui', 'username') \
       ^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'username'
```

This patch fixes the issue.

6 of 6 new or added lines in 1 file covered. (100.0%)

961 of 1050 relevant lines covered (91.52%)

3.66 hits per line

Relevant lines Covered
Build:
Build:
1050 RELEVANT LINES 961 COVERED LINES
3.66 HITS PER LINE
Source Files on no-pass
  • Tree
  • List 16
  • 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
5906618815 no-pass Fix configuration without authentication If an empty password was configured in the user interface configuration, instead of requiring no authentication, pyCA would throw an internal server error: ``` Traceback (most recent call last): File "/... push 18 Aug 2023 08:04PM UTC lkiesow github
91.52
See All Builds (7)

Badge your Repo: pyCA

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • 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