Project

General

Profile

Bug #474

Handling capital letters in Application ID (AdminServer)

Added by Anton Leonov about 1 year ago.

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

0%

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])?))'" 
 }
}

Also available in: Atom PDF