Bug 903031 - Alias length limit of 20 characters is too short, please raise it
Summary: Alias length limit of 20 characters is too short, please raise it
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: Bugzilla General
Version: 4.2
Hardware: All
OS: All
unspecified
medium
Target Milestone: 4.4-3
Assignee: Matt Tyson 🤬
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-23 00:22 UTC by Adam Williamson
Modified: 2018-12-09 06:29 UTC (History)
3 users (show)

Fixed In Version: 4.4-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-20 11:04:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 833611 0 None None None Never

Description Adam Williamson 2013-01-23 00:22:14 UTC
This is a copy of upstream bug https://bugzilla.mozilla.org/show_bug.cgi?id=833611 - mtyson told me to submit it to our bugzilla too, as you may be happy to patch this downstream. It is a trivial change. A dumb code grep shows up Bugzilla/Bug.pm , Bugzilla/DB/Schema.pm , Bugzilla/Install/DB.pm , and template/en/default/bug/create/create.html.tmpl as files that look like they need to be touched, just s/20/new value/ in each case. The limit is present in both our 4.2 and 4.4 installs - I checked.

I work in Fedora QA. We use alias names to keep track of our blocker and freeze exception tracker bugs. We recently came up with a scheme for improving the alias names we use. Unfortunately, it results in aliases as long as 23 characters. The scheme is:

FXXAlphaBlocker
FXXAlphaFreezeException
FXXBetaBlocker
FXXBetaFreezeException
FXXFinalBlocker
FXXFinalFreezeException

where XX is the Fedora release number. The Alpha and Final freeze exception aliases are 23 characters (and will go to 24 when we reach Fedora 100 ;>).

So far as I can tell there is no technical reason for the 20 character limit, it is an entirely arbitrary call that was made in 2001:

https://bugzilla.mozilla.org/show_bug.cgi?id=99203#c2

Asa asked if aliases should be limited in length, Myk said they should and recommended 'something small' on the grounds that "Aliases are supposed to be easy to remember, so I can't imagine the right limit being much more than that." He suggested 20 characters, and without there really being any further explicit discussion, this number was incorporated into the proposed patches and eventually the final accepted one, and hence into BZ, where it has remained for the last 12 years.

I submit that our proposed aliases represent a perfectly reasonable use case and hence the 'right' limit is higher than 20 characters - at least 25 or 30. I really can't see any reason for this kind of arbitrary restriction, though - why not limit it to something really big, but below a level which could cause problems for the server? 200 characters or something?

Comment 1 Adam Williamson 2013-01-23 01:06:20 UTC
I just remembered our ARM team have their own tracker bugs which follow the same name scheme but add ARM, so they might go up to 26:

FXXARMAlphaFreezeException

so we could do with a limit of at least 26.

Comment 2 Matt Tyson 🤬 2013-02-05 04:54:55 UTC
I've updated the Red Hat Bugzilla code to use an alias length of 40 characters.

Comment 4 Adam Williamson 2013-02-05 05:02:12 UTC
Thanks! How long will that take to make it to production?

Comment 5 Simon Green 2013-02-05 05:04:41 UTC
(In reply to comment #4)
> Thanks! How long will that take to make it to production?

At this stage, Bugzilla 4.4-3 will be release on May 2nd (May 3rd in APAC)

  -- simon

Comment 6 wangjing 2013-05-07 06:17:06 UTC
Verified on qe test env version 4.4.rc2-3(20130426) --> Fail

Verify steps:
1.file a new fedora bug.
2.add an alias for this bug:'F1000AlphaFreezeException1111111111111112'.

then expected result: this alias is set unsuccessfully, the length of the string is out of the limit(40 charactors), the warning text should be 'Bug aliases cannot be longer than 40 characters. Please choose a shorter alias.'

Actual results:
Currently the warning text was:'Bug aliases cannot be longer than 20 characters. Please choose a shorter alias.'

Comment 9 wangjing 2013-05-15 02:46:00 UTC
Verified on qe test env version 4.4.rc2-3(20130513) --> pass

Verify steps:
1.file a new fedora bug.
2.add an alias for this bug :'F1000AlphaFreezeException'
then expected result: this alias is set successfully.

3.add another alias: 'F1000AlphaFreezeException111111111111111'.

then expected result: this alias is set successfully.

 4.add another alias: 'F1000AlphaFreezeException1111111111111112'.

then expected result: this alias is set unsuccessfully, the length of the string is out of the limit(40 charactors), the warning text should be 'Bug aliases cannot be longer than 40 characters. Please choose a shorter alias.'

Actual results:
same as expected results.


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