Closed yvrng closed 10 months ago
This regression may have been introduced with version 0.13.4, there were no issues before.
But, I'm not able to reproduce it with unit tests:
@Test
void readPokemon() throws Exception {
// given
var sourceFile = SerdesUtils.resourceToFile("xml/pokemon.xml");
var sourceUri = this.serdesUtils.resourceToStorageObject(sourceFile);
// when
var task = XmlReader.builder()
.id("read")
.type(XmlReader.class.getName())
.from("{{ inputs.from }}")
.query("/root/pokemon")
.parserConfiguration(XmlReader.ParserConfiguration.builder()
.forceList(Set.of("type"))
.build())
.build();
Map<String, Object> inputs = Map.of("from", sourceUri);
var output = task.run(TestsUtils.mockRunContext(this.runContextFactory, task, inputs));
// then
final List<String> targetContentList;
try (InputStream in = runContextFactory.of().uriToInputStream(output.getUri()); BufferedReader reader = new BufferedReader(new InputStreamReader(in))) {
targetContentList = reader.lines().toList();
}
assertThat(targetContentList, hasSize(3));
}
Hi ! I can't reproduce your issue : Using your file & your flow :
As you're using K8S*, are you using the kestra image -full
version that include all plugins, or are you adding plugins by yourself ?
Hi! Yes, we are using the full image as basis, then we add our custom plugin within it.
We're no longer able to reproduce the bug on our side, either. Everything seems to be OK now, but no idea what might have caused the problem.
My team notified me that we still have the issue in dev (v0.13.5)
Expected Behavior
When I use the
XmlReader
I want my XML file to be parsed as expectedActual Behaviour
The result ION file is empty, whatever the content of
query
Steps To Reproduce
No response
Environment Information
Example flow
with the following dataset: