Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResourceHttpRequestHandler 404 when encounter no english character filename , springbot 2.6.6 #30657

Closed
xiaoqiaotq opened this issue Apr 14, 2022 · 2 comments
Labels
for: external-project For an external project and not something we can fix status: duplicate A duplicate of another issue

Comments

@xiaoqiaotq
Copy link

springbot 2.6.6

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.6.6</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

config

Dingtalk_20220414143633.jpg

url path encode twice ,lead to fileResouce not found ,just need one

// test curl
curl --location --request GET 'localhost:9898/r/测试832878.tmp'

// see below pic
// first encode
测试832878.tmp   -->  %E6%B5%8B%E8%AF%95832878.tmp   
// second encode bug ??
%E6%B5%8B%E8%AF%95832878.tmp --> %25E6%25B5%258B%25E8%25AF%2595832878.tmp

Dingtalk_20220414144431.jpg

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 14, 2022
@pruidong
Copy link
Contributor

Can't tell from the picture, I feel you should provide a minimal example.

@bclozel
Copy link
Member

bclozel commented Apr 14, 2022

Closing as a duplicate of spring-projects/spring-framework#27791

@bclozel bclozel closed this as completed Apr 14, 2022
@bclozel bclozel added status: duplicate A duplicate of another issue for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants