eclipse-passage / passage

Define and control license checks and usage constraints for OSGi / RCP / IDE
https://www.eclipse.org/passage/
Eclipse Public License 2.0
6 stars 8 forks source link

Net emf objects transfer should rely on domain resource factory #1334

Closed eparovyshnaya closed 3 months ago

eparovyshnaya commented 3 months ago

Often we transfer license-related EMF objects as a payload to net response. Such a serialization does not require resource URI to show in the picture, so we use direct resource implementation invocation.

This is not how things should work.

Make an effort and retrieve resource instance from a factory, not reference it directly. Central facility is EObjectToBytes, all its clients also need revision.