citrusframework / citrusframework/citrus

Remote server: URI /results without "Accept" header results in 404

Open
#444 0 comments 0 reactions 0 assignees View on GitHub
enhancement prio-low
Dominant language
Java
Stars
485
Forks
155
Avg merge
4d 22h
Merged PRs (30d)
6

Description

**Citrus Version**
2.7.6

**Expected behavior**
The service should default to serving "application/json" or give code 400 Bad Request, maybe with some explaining.

**Actual behavior**
The service returns 404, which might lead the caller to think he got the wrong path.

**Test case sample**
> Please, share the test case (as small as possible) which shows the issue
Just do a curl .../integration-citrus-test/results once with "Accept: application/json" and once without.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with curl against integration-citrus-test/results, once with Accept: application/json and once without. Trace the remote server endpoint handling and make the missing header produce application/json or a 400 Bad Request response with an explanation; done means the endpoint no longer returns 404 for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.