tracker issue : CF-3120186

select a category, or use search below
(searches all categories and all time range)
Title:

While registering a duplicate REST application, case(uppercase, lowercase) in service mapping name should be ignored

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Milan Chandna)

Created: 02/22/2012

Components: Web Services, REST Service

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Public Beta / 281797

Priority/Frequency: Normal / Few users will encounter

Locale/System: ALL / Mac 10 All,Win XP All

Vote Count: 0

Problem:
In rest services, mapping name is case-insensitive.
If we register an application as 'TEST' then calling a resource from 'test' also works.

keeping this in mind, If there is an application 'TEST' already registered and I am trying to register another application 'test',
It should give me duplicate application error.

But it doesn't
It registers the application successfully.
It may lead to ambiguity.

Check the attachment for test case.

Method:

Result:

Expected:

Workaround:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3120186

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

In the CFRestServlet, we were using a normal hashmap for storing the app name and the corresponding Jersey servet. Instead of using normal hashmap, I used CaseInsensitiveMap from the coldfusion. So two servlets cannot have the same application name even with different cases.
Comment by Paul N.
20661 | February 27, 2012 11:06:07 PM GMT
Application name is case insensitive in REST. Now a rest service can be edited in the admin successfully, even if the servicemapping specified is the same name in different case.
Comment by Paul N.
20662 | March 08, 2012 05:43:57 AM GMT
sanity testing done
Comment by Milan C.
20663 | March 08, 2012 11:35:54 AM GMT