Skip to content

base64:decode throws error:badarg too - #6090

Merged
rnewson merged 1 commit into
mainfrom
improve-invalid-auth-header-handling
Aug 6, 2026
Merged

base64:decode throws error:badarg too#6090
rnewson merged 1 commit into
mainfrom
improve-invalid-auth-header-handling

Conversation

@rnewson

@rnewson rnewson commented Aug 6, 2026

Copy link
Copy Markdown
Member

Overview

Expand what errors when base64 decoding we handle

Testing recommendations

Try `curl http://localhost:5984/_all_dbs -H 'Authorization: Basic foo' etc.

Related Issues or Pull Requests

N/A

Checklist

  • This is my own work, I did not use AI, LLM's or similar technology
  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • Documentation changes were made in the src/docs folder
  • Documentation changes were backported (separated PR) to affected branches

@pgj

pgj commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

I think it would be nice to cover this change with some test.

@nickva nickva left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@rnewson
rnewson force-pushed the improve-invalid-auth-header-handling branch from a503a4a to 4f487b9 Compare August 6, 2026 14:16
Expand what errors when base64 decoding we handle
@rnewson
rnewson force-pushed the improve-invalid-auth-header-handling branch from 4f487b9 to 3b59e2b Compare August 6, 2026 15:27
@rnewson
rnewson merged commit a6778e5 into main Aug 6, 2026
63 checks passed
@rnewson
rnewson deleted the improve-invalid-auth-header-handling branch August 6, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants