Determine Project in BaseController::doHandle

When handling a HttpServletRequest (for displaying a Build Step configuration page) I need to determine the project which contains the build-configuration.

I am able to call HttpServletRequest.getAttribute("contextProject") - which provides the information I require - but it feels like I'm abusing a feature not meant for this purpose (i.e. looking behind the API curtain).

Is this overly fragile? I.e. is it likely to continue working for future versions of TeamCity?




Please sign in to leave a comment.