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

Special characters encoding #650

Open
itafraze opened this issue Aug 17, 2024 · 1 comment
Open

Special characters encoding #650

itafraze opened this issue Aug 17, 2024 · 1 comment

Comments

@itafraze
Copy link

itafraze commented Aug 17, 2024

Possibly related to #324, special characters handling can be improved. Consider the following element:

image

It is being stored in Postgres as (once untangling the json-formatted string):

 level |       parent_name       |      parent_class      |       child_name        |      child_class       |                               child_body                               |                                                                                                                                                                                                          child_body_ascii                                                                                                                                                                                                          
-------+-------------------------+------------------------+-------------------------+------------------------+------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     1 | Namespace               | sysml:Namespace        | Domain                  | sysml:Package          |                                                                        | 
     2 | Domain                  | sysml:Package          | Requirements            | sysml:Package          |                                                                        | 
     3 | Requirements            | sysml:Package          | BRD-001 Production cost | sysml:RequirementUsage |                                                                        | 
     4 | BRD-001 Production cost | sysml:RequirementUsage | productionCost<15       | sysml:AttributeUsage   |                                                                        | 
     4 | BRD-001 Production cost | sysml:RequirementUsage |                         | sysml:Documentation    | Production of the device is expected to cost no more than ���15        | \x50726f64756374696f6e206f66207468652064657669636520697320657870656374656420746f20636f7374206e6f206d6f7265207468616e20efbfbdefbfbdefbfbd3135
     4 | BRD-001 Production cost | sysml:RequirementUsage |                         | sysml:Documentation    | ^?=)(/&%$��"!|                                                         | \x5e3f3d29282f262524efbfbdefbfbd22217c
     4 | BRD-001 Production cost | sysml:RequirementUsage |                         | sysml:Documentation    | �������������@�������������������������������������������������������� | \xefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd40efbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbdefbfbd
     5 | productionCost<15       | sysml:AttributeUsage   |                         |                        |                                                                        | 
(10 rows)

As long as the objects are cached, the visualisation is correct. However, once SysON is restarted and the database content loaded, the result is:

image

Tested on

Environments:

Images:

  • eclipsesyson/syson:main@sha256:041716a93d4688574de25f4cef0137d5526107b7fce6e4a409546fb3645a7fe6
  • eclipsesyson/syson:v2024.7.4@sha256:a7cb5b85b923c9206a952fe80aa1c0e3b37257f642f881a3c64e23d706bbb733
  • postgres:12.20-bookworm@sha256:da8d2778145448102c8ab478fdcebd43848d6f220ddb12d87329afbade3fb6e7

Browser:

  • Firefox 129.0.1 (64-bit) - Binaries
  • Chromium Version 127.0.6533.119 (Official Build) (64-bit) - Flatpak

Other info

This behaviour could be inherited from https://github.com/eclipse-sirius/sirius-web but I have not tested it.

@AxelRICHARD
Copy link
Member

Hello,
Thank you for reporting this problem.
I didn't succeed in reproducing the problem with my local install of SysON (on macOS).
Anyway, It can be fixed in SysON directly. For this part, we rely on Sirius Web, (as you mentioned it) a framework to easily create and deploy graphical studios to the web.
I will raised an issue on Sirius Web github repository.
Regards,

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

No branches or pull requests

2 participants