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

Bug 491119

Summary: Server exception applying patch
Product: [ECD] Orion Reporter: Silenio Quarti <Silenio_Quarti>
Component: NodeAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 12.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Apply this file as a patch
none
Apply this file as a patch none

Description Silenio Quarti CLA 2016-04-05 17:12:43 EDT
/home/admin/orionode/orionode/lib/git/diff.js:315
						return path.join(repo.workdir(), f.split("/").slice(1).join("/")	);
						                                  ^

TypeError: Cannot read property 'split' of undefined
    at Object.mDiff.applyPatches.getFile (/home/admin/orionode/orionode/lib/git/diff.js:315:41)
    at Object.mDiff.applyPatches.loadFile (/home/admin/orionode/orionode/lib/git/diff.js:321:24)
    at processIndex (/home/admin/orionode/orionode/node_modules/diff/lib/patch/apply.js:148:13)
    at Object.applyPatches (/home/admin/orionode/orionode/node_modules/diff/lib/patch/apply.js:159:3)
    at apply (/home/admin/orionode/orionode/lib/git/diff.js:313:11)
    at Form.<anonymous> (/home/admin/orionode/orionode/lib/git/diff.js:339:5)
    at emitNone (events.js:72:20)
    at Form.emit (events.js:166:7)
    at /home/admin/orionode/orionode/node_modules/multiparty/index.js:572:12
    at nextTickCallbackWith0Args (node.js:420:9)
    at process._tickCallback (node.js:349:13)
Comment 1 Olivier Thomann CLA 2016-04-05 17:25:59 EDT
Created attachment 260729 [details]
Apply this file as a patch

This file is not a patch, but I tried to apply it as a patch.
Comment 2 Olivier Thomann CLA 2016-04-05 17:26:31 EDT
Created attachment 260730 [details]
Apply this file as a patch

This file is not a patch, but I tried to apply it as a patch.