Opened 14 years ago

Last modified 9 years ago

#494 new defect

IZ2512: qstat returns invalid XML (invalid encoding)

Reported by: jvb Owned by:
Priority: normal Milestone:
Component: sge Version: 6.1u3
Severity: minor Keywords: clients


[Imported from gridengine issuezilla]

        Issue #:      2512             Platform:     All      Reporter: jvb (jvb)
       Component:     gridengine          OS:        All
     Subcomponent:    clients          Version:      6.1u3       CC:
                                                                        [_] uddeborg
                                                                        [_] Remove selected CCs
        Status:       NEW              Priority:     P3
      Resolution:                     Issue type:    DEFECT
                                   Target milestone: ---
      Assigned to:    roland (roland)
      QA Contact:     roland
       * Summary:     qstat returns invalid XML (invalid encoding)
   Status whiteboard:

     Issue 2512 blocks:
   Votes for issue 2512:  10

   Opened: Fri Mar 7 10:06:00 -0700 2008 

The xml document returned by qstat -xml does not have an encoding statement in
its XML declaration which means that UTF-8 should be assumed by an XML parser.
Sometimes qstat -xml returns characters that are not encoded in UTF-8.

Example how to reproduce:

I use an i386_linux machine

I create a simple shell script with just a 'sleep 200' statement and save it to
a file whose name has a non-ascii character, e.g Ö

Submit the script with qsub Ö

Look at the stat with qstat -xml

The file name appears in the element <JB_name>Ö</JB_name> but if you feed
this xml document into a parser, it fails, as the Ö character isn't encoded in UTF-8

   ------- Additional comments from uddeborg Wed Mar 12 08:37:38 -0700 2008 -------
Add CC

Change History (1)

comment:1 Changed 9 years ago by dlove

  • Severity set to minor

See #1447

Note: See TracTickets for help on using tickets.