Bug 1463467 - Unable to edit external tracker if its type contains underscore
Unable to edit external tracker if its type contains underscore
Status: CLOSED NEXTRELEASE
Product: Bugzilla
Classification: Community
Component: Administration (Show other bugs)
5.0
Unspecified Unspecified
low Severity low (vote)
: ---
: ---
Assigned To: Jeff Fearn
tools-bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-20 21:49 EDT by Alasdair Kergon
Modified: 2017-06-28 01:11 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-06-20 22:46:35 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Alasdair Kergon 2017-06-20 21:49:47 EDT
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 01:11:21 EDT
Portál ČHMÚ

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