Project

General

Profile

Bug #474

Handling capital letters in Application ID (AdminServer)

Added by Anton Leonov over 2 years ago. Updated 9 days ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
-
% Done:

100%

Estimated Time:
Deployment type:
AppScale - self deployed

Description

Currently AdminServer responds with 404 error if you use upper case signs in application ID (probably it's applicable for service id and version id too). It might be better to return 400 error as Google does.
Example of response from Google APIs for invalid request:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalidParameter",
    "message": "Invalid value ' <myProject-id>'. Values must match the following regular expression: '(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))'",
    "locationType": "parameter",
    "location": "project" 
   }
  ],
  "code": 400,
  "message": "Invalid value ' <myProject-id>'. Values must match the following regular expression: '(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))'" 
 }
}

History

#4 Updated by Nicolas Denutte 9 days ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF