Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9154 Few improvements/bug fixes in offline image viewer and offline edit viewer
  3. HDFS-9156

[OEV] : The inputFile does not follow case insensitiveness incase of XML file

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      As in document and help

      -i,--inputFile <arg>   edits file to process, xml (*case
                             insensitive*) extension means XML format,
      

      But if i give the file with "XML" extension it falls back to binary processing.
      This issue is due the code

       int org.apache.hadoop.hdfs.tools.offlineEditsViewer.OfflineEditsViewer.go()
      .....
      boolean xmlInput = inputFileName.endsWith(".xml");
      
      

      Here need to check the xml after converting the file name to lower case

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nijel nijel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: