che icon indicating copy to clipboard operation
che copied to clipboard

Workspace should update project by path instead by name

Open ashumilova opened this issue 10 years ago • 1 comments

As project name is not a mandatory attribute for the project, we need to change behaviour of updating project on the workspace {{org.eclipse.che.api.workspace.server.WorkspaceService#updateProject}} to search project by its path, not by name, otherwise we can get a NPE. if (!workspace.getConfig().getProjects().removeIf(project -> project.getName().equals(update.getName()))) { throw new NotFoundException("Workspace " + id + " doesn't contain project " + update.getName()); }

ashumilova avatar Jul 15 '16 12:07 ashumilova

Already fixed by #954

voievodin avatar Jul 15 '16 12:07 voievodin