Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove invalid XML characters #2406

Open
Yuri05 opened this issue Jan 30, 2025 · 2 comments
Open

Remove invalid XML characters #2406

Yuri05 opened this issue Jan 30, 2025 · 2 comments

Comments

@Yuri05
Copy link
Member

Yuri05 commented Jan 30, 2025

If the name or description name for any entity (building block, parameter, container, ...) contains control characters 0x01 .. 0x08 or 0x0E .. 0x1F - the project cannot be opened anymore, because those characters are invalid in XML.

Invalid control characters

Image

To avoid this: prohibit usage of these characters in any user editable text fields (names, descriptions, value origins, ...)

Another possibility to create a non-readable project is importing of observed data, when those characters are contained somewhere in the text. E.g. import observed data from the file attached (make sure the column Study Id is mapped) BS_Group.xlsx

Import mapping

Image

Save the project and reopen it: the same error message as in Open-Systems-Pharmacology/MoBi#1794 comes.

So here I would also prohibit importing of such data.

@PavelBal
Copy link
Member

What, the user cannot use emojis in the simulation name?? 🤕

Jokes aside, I wouldn't even know how to input these codes?

@Yuri05
Copy link
Member Author

Yuri05 commented Jan 30, 2025

What, the user cannot use emojis in the simulation name?? 🤕

You can :)

Jokes aside, I wouldn't even know how to input these codes?

I didn't know it as well... till now 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants