You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2021/09/30 14:58:33 UTC
[GitHub] [incubator-shenyu] qicz opened a new issue #2184: [BUG] SpringMvcClientBeanPostProcessor path process error in diferent platform
qicz opened a new issue #2184:
URL: https://github.com/apache/incubator-shenyu/issues/2184
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
run the "shenyu-examples-http", the path process is a fault.
### Expected Behavior
the URI path is invalid.
### Steps To Reproduce
_No response_
### Environment
```markdown
ShenYu version(s): 2.4.1-SNAPSHOT
```
### Debug logs
Exception in thread "shenyu-spring-mvc-client-thread-pool-0" java.nio.file.InvalidPathException: Illegal char <*> at index 14: /\/http\/test/**
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.nio.file.Paths.get(Paths.java:84)
at org.apache.shenyu.client.springmvc.init.SpringMvcClientBeanPostProcessor.buildMetaDataDTO(SpringMvcClientBeanPostProcessor.java:127)
at org.apache.shenyu.client.springmvc.init.SpringMvcClientBeanPostProcessor.lambda$postProcessAfterInitialization$0(SpringMvcClientBeanPostProcessor.java:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "shenyu-spring-mvc-client-thread-pool-1" java.nio.file.InvalidPathException: Illegal char <*> at index 21: /\/http\/order\/path/**/name
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.nio.file.Paths.get(Paths.java:84)
at org.apache.shenyu.client.springmvc.init.SpringMvcClientBeanPostProcessor.buildMetaDataDTO(SpringMvcClientBeanPostProcessor.java:127)
at org.apache.shenyu.client.springmvc.init.SpringMvcClientBeanPostProcessor.lambda$postProcessAfterInitialization$1(SpringMvcClientBeanPostProcessor.java:112)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "shenyu-spring-mvc-client-thread-pool-2" java.nio.file.InvalidPathException: Illegal char <*> at index 21: /\/http\/order\/path/**
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.nio.file.Paths.get(Paths.java:84)
at org.apache.shenyu.client.springmvc.init.SpringMvcClientBeanPostProcessor.buildMetaDataDTO(SpringMvcClientBeanPostProcessor.java:127)
at org.apache.shenyu.client.springmvc.init.SpringMvcClientBeanPostProcessor.lambda$postProcessAfterInitialization$1(SpringMvcClientBeanPostProcessor.java:112)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "shenyu-spring-mvc-client-thread-pool-3" java.nio.file.InvalidPathException: Illegal char <*> at index 17: /\/http\/request/**
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.nio.file.Paths.get(Paths.java:84)
at org.apache.shenyu.client.springmvc.init.SpringMvcClientBeanPostProcessor.buildMetaDataDTO(SpringMvcClientBeanPostProcessor.java:127)
at org.apache.shenyu.client.springmvc.init.SpringMvcClientBeanPostProcessor.lambda$postProcessAfterInitialization$0(SpringMvcClientBeanPostProcessor.java:103)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
### Anything else?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-shenyu] qicz commented on issue #2184: [BUG] SpringMvcClientBeanPostProcessor path process error in diferent platform
Posted by GitBox <gi...@apache.org>.
qicz commented on issue #2184:
URL: https://github.com/apache/incubator-shenyu/issues/2184#issuecomment-931420945
@sunrui849
The `Paths.get` api will use different `FileSystemProvider`, windows start with `\` , Unix like start with `/`, but URI path must use `/`.


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-shenyu] yu199195 closed issue #2184: [BUG] SpringMvcClientBeanPostProcessor path process error in diferent platform
Posted by GitBox <gi...@apache.org>.
yu199195 closed issue #2184:
URL: https://github.com/apache/incubator-shenyu/issues/2184
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org