[
https://issues.apache.org/jira/browse/KNOX-2928?focusedWorklogId=866689&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-866689
]
ASF GitHub Bot logged work on KNOX-2928:
----------------------------------------
Author: ASF GitHub Bot
Created on: 21/Jun/23 09:53
Start Date: 21/Jun/23 09:53
Worklog Time Spent: 10m
Work Description: zeroflag opened a new pull request, #766:
URL: https://github.com/apache/knox/pull/766
## What changes were proposed in this pull request?
Using a malformed URL generates http 500 (MalformedURLException) instead of
http 400.
## How was this patch tested?
```
curl -k -u admin:admin-password
https://localhost:8443/gateway/knoxsso/api/v1/websso?originalUrl=https://localhost:5003gateway/homepage/home/
```
```
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 400 Bad Request</title>
</head>
<body><h2>HTTP ERROR 400 Bad Request</h2>
<table>
<tr><th>URI:</th><td>/gateway/knoxsso/api/v1/websso</td></tr>
<tr><th>STATUS:</th><td>400</td></tr>
<tr><th>MESSAGE:</th><td>Bad Request</td></tr>
<tr><th>SERVLET:</th><td>knoxsso-knox-gateway-servlet</td></tr>
</table>
```
Issue Time Tracking
-------------------
Worklog Id: (was: 866689)
Remaining Estimate: 0h
Time Spent: 10m
> For malformed url should return 400 bad request instead of 500
> --------------------------------------------------------------
>
> Key: KNOX-2928
> URL: https://issues.apache.org/jira/browse/KNOX-2928
> Project: Apache Knox
> Issue Type: Task
> Reporter: J.Andreina
> Assignee: Attila Magyar
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> This is caused by: KNOX-2906
> Using an URL like this results http 500 (malformed url exception) instead of
> 400.
> /gateway/knoxsso/api/v1/websso?originalUrl=https://host:5003gateway/homepage/home/
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)