Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-2859

[RH-SSO] Docs generation for "sso72-https.json" template currently fails with python UnicodeDecodeError exception

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: TEMPLATE 1.4.15.GA
    • Fix Version/s: None
    • Component/s: RH-SSO, SSO
    • Labels:
      None
    • Target Release:
    • Steps to Reproduce:
      Hide

      Attempt to regenerate the docs via $ ./gen_template_docs.py currently fails with:

      [iankko@localhost application-templates]$ ./gen_template_docs.py 
      ...
      Generating docs/datavirt/datavirt63-extensions-support-s2i.adoc...
      Generating docs/datavirt/datavirt63-secure-s2i.adoc...
      Generating docs/sso/sso72-https.adoc...
      Traceback (most recent call last):
        File "./gen_template_docs.py", line 363, in <module>
          generate_templates()
        File "./gen_template_docs.py", line 63, in generate_templates
          generate_template(os.path.join(directory, template))
        File "./gen_template_docs.py", line 87, in generate_template
          text_file.write(createTemplate(data, path))
        File "./gen_template_docs.py", line 117, in createTemplate
          tdata['description'] += "\n\n" + sso_desc
      UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 177: ordinal not in range(128)
      
      Show
      Attempt to regenerate the docs via $ ./gen_template_docs.py currently fails with: [iankko@localhost application-templates]$ ./gen_template_docs.py ... Generating docs/datavirt/datavirt63-extensions-support-s2i.adoc... Generating docs/datavirt/datavirt63-secure-s2i.adoc... Generating docs/sso/sso72-https.adoc... Traceback (most recent call last): File "./gen_template_docs.py", line 363, in <module> generate_templates() File "./gen_template_docs.py", line 63, in generate_templates generate_template(os.path.join(directory, template)) File "./gen_template_docs.py", line 87, in generate_template text_file.write(createTemplate(data, path)) File "./gen_template_docs.py", line 117, in createTemplate tdata['description'] += "\n\n" + sso_desc UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 177: ordinal not in range(128)
    • Affects:
      Documentation (Ref Guide, User Guide, etc.)

      Description

      Attempt to run $ ./gen_template_docs.py fails with current application-templates' master.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                iankko Ján Lieskovský
                Reporter:
                iankko Ján Lieskovský
                Tester:
                Peter Zaoral
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: