assemblee-virtuelle / assemblee-virtuelle/semapps

Backend error when we change geolocalisation ontologie

Open
#1,140 3 comments 0 reactions 0 assignees View on GitHub
bug middleware
Dominant language
TypeScript
Stars
103
Forks
14
Avg merge
1m
Merged PRs (30d)
2

Description

**Décrivez le bug**
I want to use Geonames/schema.org ontologies in spite of PAIR ontology.
So I've modified containers.js (back) and LocationInput.js (front).
When I open an organization, backend crash with error "Invalid character in statusMessage".

**Etapes pour reproduire**
1. Modify deference line in onrganization container, changing ontology like this :
```
dereference: ['sec:publicKey', 'heco:hasLocation/heco:hasPostalAddress'],
```
3. Restart middleware
4. Open an organization

**Comportement attendu**
Show organization data.

**Captures d'écran**
![image](https://github.com/assemblee-virtuelle/semapps/assets/6891994/733baae7-01e2-4428-9c91-2cfcb2e90bde)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the ontology changes in containers.js and LocationInput.js, then reproduce the crash by changing the organization dereference and opening an organization after restarting the middleware. Trace the "Invalid character in statusMessage" error; the fix is complete when the organization data is displayed with the Geonames/schema.org ontology.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.