-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Description of Issue
When creating an API endpoint with inline code (no -Path) and then opening Edit Endpoint Properties from within the inline editor in the same session, saving properties clears the endpoint code. Opening Edit Properties from outside the editor does not clear content. Using a relative -Path to an external script file (e.g., api/user-mgmt/v1/users.ps1) also avoids the issue; file content persists.
Reproduction steps
Admin UI → APIs → New endpoint (inline code only).
Enter a few lines of code, click Save.
Without leaving the editor, click Edit Endpoint Properties (inside the editor pane), change a toggle (e.g., Disable), click Save.
Reopen the endpoint: code is cleared.
Sample code
minimal inline sample
"hello from endpoint"
Observed vs Expected
Observed: inline content is wiped after saving properties from inside the editor session.
Expected: endpoint inline code should persist regardless of where properties are saved.
Version
5.6.9
Severity
High
Hosting Method
MSI (Windows Service)
Operating System
Windows
Database
SQLite
Licensed
Yes
Features
No Git Sync, no VS Code Extension.
Additional Environment data
Service runs under a domain/local admin account with full repo permissions.
AV present; no observed interference.
Screenshots/Animations
No response