Closed likedong closed 2 years ago
Can you tell me your detailed steps?
Steps To Reproduce
modify shenyu-spring-boot-starter-plugin/CryptorPluginConfiguration.java ,add code @Bean public PluginDataHandler CryptorRequestPluginDataHandler() { return new CryptorRequestPluginDataHandler(); }
@Bean public PluginDataHandler CryptorResponsePluginDataHandler() { return new CryptorResponsePluginDataHandler(); }
a) modify org.apache.shenyu.plugin.cryptor.utils/HttpUtil.java,add code,As shown below
b) modify CryptorResponsePlugin ,As shown below
shenyu-bootstrap pom.xml add code
<dependency>
<groupId>org.apache.shenyu</groupId>
<artifactId>shenyu-spring-boot-starter-plugin-divide</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shenyu</groupId>
<artifactId>shenyu-spring-boot-starter-plugin-httpclient</artifactId>
<version>${project.version}</version>
</dependency>
Did you modify the code inside? What is the result of the original code? I feel that the response was consumed in advance, which caused it to be unable to return normally.
The code inside has not been modified.
Do not configure 'fieldnames' ,parseBody == null , Can return normally.
Cryptor Response Plugin , Isn't the method called encrypted? After conversion to encryption, no information is returned.
Cryptor Response Plugin , Isn't the method called encrypted? After conversion to encryption, no information is returned.
Refer to the modify-response plugin, modify ResponseDecorator.java , Return to normal.
Is there an existing issue for this?
Current Behavior
Environment