Bug 678937

Summary: Trailing spaces in external tracker id
Product: [Community] Bugzilla Reporter: Bernd Groh <bgroh>
Component: Bugzilla GeneralAssignee: Simon Green <sgreen>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.6CC: ahecox, dfisher, ebaak, sfloess, sgreen
Target Milestone: 4.2-2   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.2.1-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-31 22:12:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Bernd Groh 2011-02-21 00:04:34 UTC
Description of problem:

I've found an entry within the bugzilla database where the external tracker id has trailing spaces:

$VAR1 = {
          'bug_id' => '659152',
          'ext_bz_bug_id' => '00031875  ',
          'ext_bz_id' => '60',
          'ext_description' => 'None',
          'ext_last_updated' => undef,
          'ext_status' => 'None',
          'id' => '31776'
        };

I haven't tried to reproduce the problem and I'm not entirely sure whether the entry was made via the UI or via xmlrpc, but neither the UI nor the xmlrpc should write trailing spaces to the database.

Comment 1 Andrew Hecox 2011-02-21 12:25:58 UTC
in the cases I investigated, the input was from the BZ UI, I haven't tested the SFDC UI path so no assertion about it handles it

Comment 2 Bernd Groh 2011-02-21 13:57:33 UTC
How do you know the input was from the BZ UI? Did you contact the person who made the change?

Comment 3 Andrew Hecox 2011-02-21 14:25:14 UTC
looking at the history log for the bug

Comment 4 Bernd Groh 2011-02-21 22:01:47 UTC
Hmm, while I don't doubt it could well have been done via the BZ UI, I'm a little puzzled as to how this can be determined from looking at the history alone. Am I somehow missing something, and we can tell how an entry was made, not just by whom?

Comment 5 Andrew Hecox 2011-02-21 22:23:32 UTC
Ah, I saw some entries which came from the xml-rpc user, and some from the user, which I falsely assumed meant it was the UI.

Comment 7 Simon Green 2012-05-08 01:14:45 UTC
This has been fixed, and will be part of the Bugzilla 4.2.1-2 release, scheduled for the end of May. As of this message, there are 31 external tracking bugs have leading or trailing spaces. These will be automatically fixed when this change goes live.

  -- simon

Comment 10 Simon Green 2012-05-31 22:12:55 UTC
This change is now live.

  -- simon