Bug 678937 - Trailing spaces in external tracker id
Summary: Trailing spaces in external tracker id
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: Bugzilla General
Version: 3.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: 4.2-2
Assignee: Simon Green
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-21 00:04 UTC by Bernd Groh
Modified: 2018-12-09 06:29 UTC (History)
5 users (show)

Fixed In Version: 4.2.1-2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-31 22:12:55 UTC


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.