Skip to content

fix(permalink): return 404 instead of 500 for an invalid dashboard permalink key (6.2 backport) - #46535

Merged
justinpark merged 2 commits into
apache:6.2from
luizotavio32:backport/6.2-permalink-invalid-key-404
Nov 24, 2026
Merged

justinpark merged 2 commits into
apache:6.2from
luizotavio32:backport/6.2-permalink-invalid-key-404

Conversation

@luizotavio32

Copy link
Copy Markdown
Contributor

SUMMARY

Backport of #46332 to 6.2.

Requesting a dashboard permalink with a key that can't be decoded returns a 500 and logs an error traceback. This returns 404 instead, while genuine failures reading the stored value still return 500.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A

TESTING INSTRUCTIONS

New unit and integration tests added.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration
  • Introduces new feature or API
  • Removes existing feature or API

🤖 Generated with Claude Code

@codeant-ai-for-open-source

codeant-ai-for-open-source Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

CodeAnt  CodeAnt PR Risk

🟢  Low Risk

  • The PR appears safe to merge; no actionable issues were identified in the review.

Assessed commit: 5ebcf51e28af

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (6.2@6af79ba). Learn more about missing BASE report.

Additional details and impacted files
@@          Coverage Diff           @@
##             6.2   #46535   +/-   ##
======================================
  Coverage       ?   64.28%           
======================================
  Files          ?     2557           
  Lines          ?   133435           
  Branches       ?    30897           
======================================
  Hits           ?    85785           
  Misses         ?    46170           
  Partials       ?     1480           
Flag Coverage Δ
hive 39.70% <62.50%> (?)
mysql 60.15% <100.00%> (?)
postgres 60.21% <100.00%> (?)
presto 39.72% <62.50%> (?)
python 61.77% <100.00%> (?)
sqlite 59.86% <100.00%> (?)
unit 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot added the api Related to the REST API label Nov 24, 2026
luizotavio32 and others added 2 commits November 24, 2026 17:43
…rmalink key (apache#46332)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 8f6df58)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@luizotavio32
luizotavio32 force-pushed the backport/6.2-permalink-invalid-key-404 branch from 35a5801 to 5ebcf51 Compare November 24, 2026 20:43
@mirehsanahady2017-glitch

Copy link
Copy Markdown

@justinpark
justinpark merged commit b0a984c into apache:6.2 Nov 24, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Related to the REST API size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants