Project Rename Request Is Not Correctly Validated #1555
Labels
d-intermediate
Difficulty: some prior knowledge required
p-high
Should be completed in the next sprint
General Summary
Calling
project/rename
with a name that is not a valid referent name succeeds. This tricks IDE into thinking that the project was actually renamed into whatever the user typed, while the underlying name is different. This leads to further issues, like visualizations not working after rename.Steps to Reproduce
Open any project in IDE, rename to a invalid identifier, like
FooBarr
.See the websocket log.
Expected Result
Call should fail with
ProjectNameValidationError
.Actual Result
Call succeeds, renaming project to
Foo_Barr
— which is not what was requested.Enso Version
For example:
The text was updated successfully, but these errors were encountered: