`payload.get('username').lower()` => `AttributeError: 'NoneType' object has no attribute 'lower'`
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- authentication, backend
Research direction
Start in patzilla/util/web/identity/service.py at identity_auth_handler, where the traceback shows the username is read from the payload. Check how requests without a username should be handled and look for nearby tests; the issue does not specify the expected response, so confirm that before changing behavior.
Written by the indexing model from the issue text.
Description
Just found this on prod.
File "/path/to/site-packages/cornice/service.py", line 493, in wrapper
response = view_(request)
File "/path/to/site-packages/patzilla/util/web/identity/service.py", line 56, in identity_auth_handler
username = payload.get('username').lower()
AttributeError: 'NoneType' object has no attribute 'lower'
- Dominant language
- Python
- Stars
- 123
- Forks
- 31
- Avg merge
- 1h 6m
- Merged PRs (30d)
- 50
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ip-tools/patzilla
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ip-tools/patzilla#149 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ip-tools/patzilla#139 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
UI: Update BabelOpendependencies help wanted javascript
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
All issues in ip-tools/patzilla
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Validate finite output clamping limits in StepPredictor.prepare_clamping_params to prevent silent NaN/Inf propagationPossibly taken @muskan-creates352 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
mllam/neural-lam#848 ·
Maintainers usually reply within 2 days
-
infra
Difficulty 1/5 Under an hour Newbie friendliness 88/100
fab-geocommuns/RNB-coeur#1166 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
deepspeedai/DeepSpeed#8951 ·
Maintainers usually reply within 2 days