apache / apache/shenyu

[BUG] fallbackUri issue

Open
#5,494 0 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Java
Stars
8.8k
Forks
3.1k
Avg merge
7d 1h
Merged PRs (30d)
85

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

fallback config:
![image](https://github.com/apache/shenyu/assets/15926669/3ba41964-080e-4de2-be55-c67a96c01119)

when fallback is triggered, the `ip:port` info is missing from the fallback request.
![image](https://github.com/apache/shenyu/assets/15926669/d5dad554-4e38-4755-bbc1-efa69b3a4026)

From the current code, it appears that this `fallbackUri` field supports two configuration methods(eg. `fallback:/far/boo` or `http://ip:port/far/boo`). Does this align with our expectations?

### Expected Behavior

_No response_

### Steps To Reproduce

_No response_

### Environment

```markdown
ShenYu version(s): 2.6
```

### Debug logs

_No response_

### Anything else?

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the fallbackUri configuration is handled in ShenYu 2.6, comparing the fallback:/far/boo and http://ip:port/far/boo forms shown in the issue. Reproduce the fallback request and determine the expected handling of the missing ip:port; done means the behavior is corrected and the expected fallback URI semantics are documented or covered by an appropriate test.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.