Skip to content

Opening an editor that does not correspond to an existing resource throws an exception #10222

@julsarik

Description

@julsarik

Description

Opening an editor that does not correspond to an existing file system resource throws an exception on workspace side.

Reproduction Steps

Open any editor that does not correspond to an existing resource.
For instance for a maven project : Assistant => Generate Effective Pom
It results in the following exceptions :

exceptions

OS and version:
Ubuntu 16.04 with Che 6.8.0-SNAPSHOT

Diagnostics:
FileTrackingOperationEvent listeners (e.g. EditorWorkingCopyManager, JavaReconciler) throw exceptions when the event is fired.
However the class SyntheticFile is documented as if it prevents this issue.
But the EditorAgentImpl ignores it.
Here is the flow :

  1. EditorAgentImpl.initEditor() fires a FileEvent (with the OPEN state)
  2. FileOpenCloseEventListener process the FileEvent transmitting FileTrackingOperationDto to the server
  3. EditorFileOperationHandler deserializes the event and fires it on the server side
  4. FileTrackingOperationEvent listeners process the event and throw exception

Metadata

Metadata

Labels

kind/bugOutline of a bug - must adhere to the bug report template.severity/P1Has a major impact to usage or development of the system.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions