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

RUN-2080: Errors messages on xml job import in 2.0.7 #538

Closed
uubufr opened this issue Nov 14, 2023 · 3 comments
Closed

RUN-2080: Errors messages on xml job import in 2.0.7 #538

uubufr opened this issue Nov 14, 2023 · 3 comments
Labels
bug to-jira (automation) add to jira

Comments

@uubufr
Copy link

uubufr commented Nov 14, 2023

Hello,

I have an error message when I want to import job in xml format. This issue occur only with 2.0.7, all work fine with 2.0.6.

I can export an xml job:
java -jar rundeck-cli jobs list --project=TEST --format=xml -f test.xml

But if I import this job:
java -jar rundeck-cli jobs load --project=TEST --format=xml --duplicate=update --file=test.xml

The job is imported successfully, but I have these errors appearing:

com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 2]
        at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2477)
        at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:750)
        at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:674)
        at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:2085)
        at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:808)
        at com.fasterxml.jackson.databind.ObjectReader._initForReading(ObjectReader.java:357)
        at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:2095)
        at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1513)
        at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:33)
        at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:23)
        at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:243)
        at retrofit2.OkHttpCall.execute(OkHttpCall.java:204)
        at org.rundeck.client.util.Client.checkErrorDowngradable(Client.java:166)
        at org.rundeck.client.util.Client.apiCallDowngradable(Client.java:606)
        at org.rundeck.client.tool.commands.RdToolImpl.apiCallDowngradable(RdToolImpl.java:107)
        at org.rundeck.client.tool.commands.RdToolImpl.apiCall(RdToolImpl.java:78)
        at org.rundeck.client.tool.commands.Jobs.load(Jobs.java:181)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1972)
        at picocli.CommandLine.access$1300(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
        at picocli.CommandLine.execute(CommandLine.java:2078)
        at org.rundeck.client.tool.Main.main(Main.java:155)

I use Rundeck 4.17.1, openjdk 11 and almaLinux 8.6.

Thanks

@MegaDrive68k
Copy link

Confirmed.

Screenshot_2023-11-14_09-25-16

It works on 2.0.6.

@eagle-rr
Copy link

We hit similar error with Rundeck Client 2.0.7 when loading xml files too. Reverting back to Rundeck Client 2.0.6 works fine.

@amontepaone
Copy link

Can you tell me how to revert back to Tundeck Client 2.0.6 ?
Regards

@gschueler gschueler added the to-jira (automation) add to jira label Dec 1, 2023
@gschueler gschueler changed the title Errors messages on xml job import in 2.0.7 RUN-2080: Errors messages on xml job import in 2.0.7 Dec 1, 2023
@gschueler gschueler added the bug label Dec 1, 2023
gschueler added a commit that referenced this issue Dec 1, 2023
RUN-2080: fix #538 format parameter overrides content type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug to-jira (automation) add to jira
Projects
None yet
Development

No branches or pull requests

5 participants