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

<greaser> XML-serialization does not work #1158

Closed
rrayst opened this issue Jul 1, 2024 · 1 comment · Fixed by #1188
Closed

<greaser> XML-serialization does not work #1158

rrayst opened this issue Jul 1, 2024 · 1 comment · Fixed by #1188
Assignees

Comments

@rrayst
Copy link
Contributor

rrayst commented Jul 1, 2024

-------------------------------------------------------------------------------
Test set: com.predic8.membrane.examples.ConfigSerializationTest
-------------------------------------------------------------------------------
Tests run: 55, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 8.823 s <<< FAILURE! -- in com.predic8.membrane.examples.ConfigSerializationTest
com.predic8.membrane.examples.ConfigSerializationTest.doit(String)[5] -- Time elapsed: 0.083 s <<< FAILURE!
java.lang.AssertionError:
The string '<spring:beans xmlns="http://membrane-soa.org/proxies/1/"
  xmlns:spring="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
    http://membrane-soa.org/proxies/1/ http://membrane-soa.org/schemas/proxies-1.xsd">

<!-- WARNING: This is an incomplete serialization of Membrane's configuration. Only use this config as a template for further processing. -->
<router id="main" hotDeploy="true" retryInitInterval="300000" retryInit="false" production="false"><uriFactory allowIllegalCharacters="false" autoEscapeBackslashes="true"></uriFactory><httpClientConfig useExperimentalHttp2="false" maxRetries="5"><connection keepAliveTimeout="4000" timeout="10000"></connection></httpClientConfig><api method="*" host="*" port="2000" name=":2000" blockRequest="false" blockResponse="false"><response><beautifier></beautifier><greaser rate="?"><greaseJson additionalProperties="true" shuffleFields="true"></greaseJson></greaser></response><return statusCode="200"></return><target port="-1" adjustHostHeader="true"></target></api></router>

</spring:beans>
' does contain 'incomplete serialization'.

probably, this is due to a double type being used. Maybe, the serializer does not support it (yet?).

@predic8 predic8 self-assigned this Jul 3, 2024
@rrayst
Copy link
Contributor Author

rrayst commented Jul 5, 2024

still relevant (on master branch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants