Raw data types cache is not updated automatically when a new file-only platform is created
This is slightly related to #1567. A file-only platform needs a corresponding raw data type for BASE to work correctly. Usually everything is initialized when the server starts up. The raw data types that are stored in configuration files and the platforms that are stored in the database are combined into a memory cache.
However I have discovered that the cache is not automatically updated when a new platform is created. Yet it seems to work when adding new platforms using the web interface. But this is only because the list page is reloaded and it contains a call to the
Platform.getRawDataType() method which triggers a search in the database when the information is not found in the cache. Other execution paths (eg. plug-ins) may not trigger this update and may result in a cache that is not consistent with what is in the database.
In my opinion the raw data type should be added to the cache by the core when the plateform is saved to the database.