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

Bug 374406

Summary: Missing file metadata should not prevent save
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 0.5   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Mark Macdonald CLA 2012-03-15 11:58:03 EDT
While writing an 'orion.core.file' provider, I implemented the "read file" operation, but messed up the "read metadata" operation so it threw an error when called.

This puts you in a state where you can open a file and edit it, but trying to save gives an error:
> TypeError: Cannot read property 'ETag' of null  exports.EditorCommandFactory.EditorCommandFactory.generateEditorCommands.mCommands.Command.nameeditorCommands.js:72
> dojo.hitch  lang.js:130

I expected the editor to cope with this better. When the metadata is not available, it should just go ahead with the write.
Comment 1 Mark Macdonald CLA 2012-03-15 12:00:21 EDT
This may be related to bug 373858, although in that case the "read metadata" attempt may've failed because of a timeout or something.
Comment 2 John Arthorne CLA 2015-05-05 15:49:23 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html
Comment 3 John Arthorne CLA 2015-05-05 16:02:19 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html