prestodb/presto

Incorrect HTTP response code 500 is returned when the password is too long

开放

#25,679 创建于 2025年8月4日

 (4 条评论) (0 个反应) (0 位负责人)Java (5,240 个派生)batch import
buggood first issue

仓库指标

星标
 (15,558 个星标)
PR 合并指标
 (平均合并 34天 14小时) (30 天内合并 120 个 PR)

描述

When file-based authentication is enabled, and the password is too long, the server responds with HTTP 500, not the expected HTTP 401

Your Environment

  • Presto version used: 0.294-SNAPSHOT
  • Storage (HDFS/S3/GCS..):
  • Data source and connector used:
  • Deployment (Cloud or On-prem): on-prem with Docker Swarm
  • Pastebin link to the complete debug logs: https://pastebin.com/SvU1KCpQ

Expected Behavior

The server should return HTTP 401.

Current Behavior

The server should return HTTP 401.

Possible Solution

Catch the RuntimeException and wrap it into a PrestoException.

Steps to Reproduce

Screenshots (if appropriate)

Context

贡献者指南