Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 521767

Summary: Sending bad project move request throws exception rather than return 403
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: NodeAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 15.0   
Target Milestone: 16.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Michael Rennie CLA 2017-09-01 12:50:17 EDT
the test 'testMoveBadRequest' attempts to send a bogus request to move a project in the workspace. Rather than the expected 403, the following exception is thrown:

Unhandled rejection TypeError: Cannot read property 'substring' of null
    at Object.module.exports.getWorkspacePath (/Users/mrennie/git/orion.client/modules/orionode/lib/metastore/util/metaUtil.js:33:30)
    at FsMetastore.getWorkspaceDir (/Users/mrennie/git/orion.client/modules/orionode/lib/metastore/fs/store.js:351:46)
    at exports.getFile (/Users/mrennie/git/orion.client/modules/orionode/lib/fileUtil.js:129:27)
    at /Users/mrennie/git/orion.client/modules/orionode/lib/fileUtil.js:447:21
    at tryCatcher (/Users/mrennie/git/orion.client/modules/orionode/node_modules/bluebird/js/release/util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (/Users/mrennie/git/orion.client/modules/orionode/node_modules/bluebird/js/release/promise.js:512:31)