Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-26591

[release-4.15] Web Console Shows Non-printable file detected

XMLWordPrintable

    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the console check to determine if a file is binary was not robust enough. As a result, XML files were misidentified as binary and not displaying in the console. With this update, an additional check was added to more precisely check if a file is binary. (link:https://issues.redhat.com/browse/OCPBUGS-26591[*OCPBUGS-26591*])
      Show
      * Previously, the console check to determine if a file is binary was not robust enough. As a result, XML files were misidentified as binary and not displaying in the console. With this update, an additional check was added to more precisely check if a file is binary. (link: https://issues.redhat.com/browse/OCPBUGS-26591 [* OCPBUGS-26591 *])
    • Bug Fix
    • Done

      This is a clone of issue OCPBUGS-18699. The following is the description of the original issue:

      Description of problem:

      Openshift Console shows "Info alert:Non-printable file detected. File contains non-printable characters. Preview is not available." while edit an XML file type configmaps.

      Version-Release number of selected component (if applicable):

       

      How reproducible:

       

      Steps to Reproduce:

      1. Create configmap from file:
      # oc create cm test-cm --from-file=server.xml=server.xml
      configmap/test-cm created
      
      2. If we try to edit the configmap in the OCP console we see the following error:
      
      Info alert:Non-printable file detected.
      File contains non-printable characters. Preview is not available.
      
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

              rhn-engineering-rhamilto Robb Hamilton
              openshift-crt-jira-prow OpenShift Prow Bot
              Xiyun Zhao Xiyun Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: