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

Unable to render XML version 1.1. #15

Open
sibprogrammer opened this issue Nov 18, 2022 · 1 comment
Open

Unable to render XML version 1.1. #15

sibprogrammer opened this issue Nov 18, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sibprogrammer
Copy link
Owner

Problem Statement

The utility fails on the attempt to render XML version 1.1.

Steps to Reproduce

xq xml-file.xml

Where xml-file.xml contains the following content:

<?xml version='1.1' encoding='UTF-8'?>
<Tag plugin="workflow-support@3.8">
    <node class="cps.n.StepStartNode" plugin="workflow-cps@2644.v29a793dac95a">
        <parentIds>
            <string>17</string>
        </parentIds>
        <id>18</id>
        <descriptorId>org.jenkinsci.plugins.pipeline.modeldefinition.steps.ScriptStep</descriptorId>
    </node>
    <actions>
        <s.a.LogStorageAction/>
        <wf.a.TimingAction plugin="workflow-api@1105.v3de5e2efac97">
            <startTime>1643040131437</startTime>
        </wf.a.TimingAction>
    </actions>
</Tag>

Actual Result

Error message saying:
xml: unsupported version "1.1"; only version 1.0 is supported

Expected Result

The file is rendered properly.

Additional Info

One of the sources of such files is Jenkins.

@sibprogrammer
Copy link
Owner Author

Corresponding issue in Go: golang/go#25755

@sibprogrammer sibprogrammer added the bug Something isn't working label Jul 11, 2023
@sibprogrammer sibprogrammer self-assigned this Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant