apache / apache/shenyu

When the Sign Plugin is used, the contextPath of ShenyuContext is empty, causing the appParam parameter to fail to be appended.

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

Description

### Question
shenyu version 2.6.0
When the Sign Plugin is used, the contextPath of ShenyuContext is empty, causing the appParam parameter to fail to be appended.
[:[](url)](![sign](https://github.com/apache/shenyu/assets/132729084/e8fea200-1960-498a-9aa2-c293cd53a8e3))
The appParam parameter cannot be appended to the header.
[
![sign3](https://github.com/apache/shenyu/assets/132729084/6676c1af-8b6d-4570-a4bc-0bc8bbc481f8)
](url)

("/" + p.getAppName()).equals(contextPath) = false

![sign4](https://github.com/apache/shenyu/assets/132729084/5e4e8519-fd9e-43aa-99e3-d585bb25f84b)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the Sign Plugin handling of ShenyuContext, focusing on how contextPath is obtained and compared with "/" + p.getAppName(). Reproduce the reported case on ShenYu 2.6.0 and inspect whether appParam is appended to the header when contextPath is empty. Done means the parameter is appended in the affected request flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.