Skip to content

Conversation

@travisformayor
Copy link
Contributor

Error handling for SBML export and Model tab frontend-backend connection.

  • Show error message in Model tab when simulation config fails to load
  • Return 400 for unrecognized API paths to backend
  • Sanitize null event IDs in SBML export
  • Null-safe error messages in Convert exception handler

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-flower-0c36fd81e-403.westus2.5.azurestaticapps.net

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves resilience of SBML export and the Model tab’s frontend-backend integration by adding safer error handling and sanitization.

Changes:

  • Frontend: show an in-UI error when simulation config fails to load; avoid throwing when defaults are missing.
  • Backend: return 400 for unknown /data/* paths; make SBML event IDs safe; ensure conversion failures always return a non-null message.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
SBOLCanvasFrontend/src/app/model-editor/model-editor.component.ts Handles simulation config load errors and provides fallback defaults instead of throwing.
SBOLCanvasFrontend/src/app/model-editor/model-editor.component.html Displays a Model tab error banner when config load fails.
SBOLCanvasFrontend/src/app/model-editor/model-editor.component.css Styles the config-load error banner.
SBOLCanvasBackend/src/utils/MxToSBML.java Sanitizes SBML event IDs to prevent invalid/empty identifiers.
SBOLCanvasBackend/src/servlets/Data.java Returns 400 when /data/* path doesn’t match a supported endpoint.
SBOLCanvasBackend/src/servlets/Convert.java Avoids null error messages in conversion error responses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-flower-0c36fd81e-403.westus2.5.azurestaticapps.net

@travisformayor travisformayor marked this pull request as ready for review January 27, 2026 21:55
@cjmyers cjmyers merged commit 98b74c5 into final Jan 28, 2026
4 checks passed
@cjmyers cjmyers deleted the fix/sbml_backend_bug branch January 28, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants