diff options
author | mkanat%bugzilla.org <> | 2006-11-03 04:59:15 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-11-03 04:59:15 +0100 |
commit | f617b2ff0a1ef840ec004fb7669ff14f455058aa (patch) | |
tree | 3d8e2b55c989edd31289be420cc289052a7239c8 /Bugzilla/WebService/Constants.pm | |
parent | c2316ff6247868d146c45e2440fa31f992b8bb8d (diff) | |
download | bugzilla-f617b2ff0a1ef840ec004fb7669ff14f455058aa.tar.gz bugzilla-f617b2ff0a1ef840ec004fb7669ff14f455058aa.tar.xz |
Bug 355837: Make the webservice able to create bugs
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=mbd, a=justdave
Diffstat (limited to 'Bugzilla/WebService/Constants.pm')
-rwxr-xr-x | Bugzilla/WebService/Constants.pm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm index ba26f3bfa..e0bb05e5a 100755 --- a/Bugzilla/WebService/Constants.pm +++ b/Bugzilla/WebService/Constants.pm @@ -52,6 +52,24 @@ use constant WS_ERROR_CODE => { invalid_bug_id_or_alias => 100, invalid_bug_id_non_existent => 101, bug_access_denied => 102, + # These all mean "invalid alias" + alias_not_defined => 103, + alias_too_long => 103, + alias_in_use => 103, + alias_is_numeric => 103, + alias_has_comma_or_space => 103, + # Misc. bug field errors + illegal_field => 104, + # Component errors + require_component => 105, + component_name_too_long => 105, + component_not_valid => 105, + # Invalid Product + no_products => 106, + entry_access_denied => 106, + product_disabled => 106, + # Invalid Summary + require_summary => 107, # Authentication errors are usually 300-400. invalid_username_or_password => 300, @@ -64,6 +82,10 @@ use constant WS_ERROR_CODE => { illegal_email_address => 501, password_too_short => 502, password_too_long => 503, + invalid_username => 504, + # This is from strict_isolation, but it also basically means + # "invalid user." + invalid_user_group => 504, }; # These are the fallback defaults for errors not in ERROR_CODE. |