Title:
[ANeff] Bug for: RestInitApplication("/mymapping", "servicename") breaks REST
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 10/17/2012
Components: REST Services
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final / 283392,283393,283396
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win All
Vote Count: 1
RestInitApplication("/mymapping", "servicename") breaks REST
Repro attached:
1) unzip to C:\inetpub\wwwroot (ex: C:\inetpub\wwwroot\restapp1 & C:\inetpub\wwwroot\restapp2)
2) in browser, go to http://localhost/restapp1 and see output "Hello World from restapp1" (good)
3) in browser, go to http://localhost/rest/news/weather and see output "It will be eleven degrees." (good)
4) in CF Admin, see REST service created w/ Root Path "/mymapping1" and Service Mapping "news". (good)
5) in browser, go to http://localhost/restapp2 and see exception "REST service can not be registered. Directory /mymapping1 provided does not exist." (bad)
- This message doesn't even make sense b/c restapp2 uses mapping named "/mymapping2" (NOT /mymapping1). Why does the message say "/mymapping1"!?
6) in CF Admin, delete the mymapping1/news REST mapping
7) in browser, go to http://localhost/restapp2 and see output "Hello World from restapp2" (good)
8) in browser, go to http://localhost/rest/news/weather and see output "Lightning bolts will light the sky with splendor." (good)
9) in CF Admin, see REST service created w/ Root Path "/mymapping2" and Service Mapping "news". (good)
10) in browser, go to http://localhost/restapp1 and see output "Hello World from restapp1" (good)
11) in browser, go to http://localhost/rest/news/weather and see output "Lightning bolts will light the sky with splendor." (bad)
12) in CF Admin, see REST service still has Root Path "/mymapping2" and Service Mapping "news". (bad)
13) in CF Admin, delete the mymapping2/news REST mapping
14) in browser, go to http://localhost/restapp1 and see output "Hello World from restapp1" (good)
15) in browser, go to http://localhost/rest/news/weather and see error "HTTP Error 500.0 - Internal Server Error. The page cannot be displayed because an internal server error has occurred." (bad)
16) in CF Admin, see mymapping1/news REST mapping was not created
17) see C:\ColdFusion10\cfusion\lib\neo-jaxrs.xml is empty: "<wddxPacket version='1.0'><header/><data><array length='2'><string></string><struct type='coldfusion.server.ConfigMap'></struct></array></data></wddxPacket>" (bad)
18) in exception.log, see "java.lang.NullPointerException at at coldfusion.rest.RestAppAdapter.getAppName(RestAppAdapter.java:52)"
19) restart CF before repeating steps 2-18
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3348054
Keywords:
FixTested
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
External Test Config: 64-bit Windows 7 Ultimate
Attachments:
- October 17, 2012 00:00:00: 1_RestInitApplicationBreaksREST.zip
Comments: