Sitecore.Ship icon indicating copy to clipboard operation
Sitecore.Ship copied to clipboard

AboutCommand doesn't set StatusCode, ends up giving Unhandled response when I compile code myself

Open steviemcg opened this issue 10 years ago • 0 comments

When I use the binaries from the NuGet package and run /services/about - I get the version number as expected.

However I needed to change the base URL from /services/ to /sitecore_ship/ so that it wouldn't intercept content pages and CSS / JS assets which had /services/ in the URL (namely uCommerce javascript files)

When I rebuilt Sitecore.Ship.AspNet and put the binaries in my solution, /sitecore_ship/about was giving an Unhandled response from the Sitecore.Ship handler.

I found a workaround, adding the following line to AboutCommand.cs: context.Response.StatusCode = 200;

I'm still confused why I can't replicate this error on the NuGet build though.

This is tested on Sitecore 7.2.2 (rev 140526)

Thanks for the great product.

steviemcg avatar Jul 17 '14 18:07 steviemcg