Bug 1463467 - Unable to edit external tracker if its type contains underscore
Summary: Unable to edit external tracker if its type contains underscore
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: Administration
Version: 5.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: 5.0
Assignee: Jeff Fearn 🐞
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-21 01:49 UTC by Alasdair Kergon
Modified: 2018-12-09 06:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 02:46:35 UTC
Embargoed:


Attachments (Terms of Use)
accept underscore in external tracker type (489 bytes, patch)
2017-06-21 01:49 UTC, Alasdair Kergon
no flags Details | Diff

Description Alasdair Kergon 2017-06-21 01:49:47 UTC
Created attachment 1289894 [details]
accept underscore in external tracker type

Attempting to edit an external tracker with type SFDC_QA gives the error
  "SFDC_QA" is not a valid external tracker type. 
with the title "Invalid Type Supplied".

This appears to come from extensions/ExternalBugs/lib/Type.pm:309
    $type =~ /^([A-Z][A-Za-z0-9]+)$/i
        or ThrowUserError('ext_bz_unsafe_chars', { type => $type });
not accepting underscore

Comment 1 Jeff Fearn 🐞 2017-06-28 05:11:21 UTC
Portál ČHMÚ


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