Skip to content

Error when trying to import JSON template #448

Description

@tggaule

Hello!

I don't really know if it's a bug or an error on my part but I would like to import a JSON template (https://github.com/monarc-project/monarc-objects/blob/master/referentials/ISO_IEC_27002.json)
but when importing it gives me a type error:
"An error has occurred on api/client-anr/1/instances/import : Typed property Monarc\FrontOffice\Service\InstanceImportService::$monarcVersion must not be accessed before initialization (500)"

Thanks a lot for your time on the project !

To Reproduce

  1. Go to 'Project management context menu'
  2. Click on 'Import a risk analysis'
  3. Select JSON file
  4. Click on 'Import file'
  5. See error

Expected behavior
The template should be imported

Screenshots
image
image
image
the error is half in French but I copied it above

Desktop (please complete the following information):

Questions Answers
Type of issue Bug
OS version (server) Ubuntu (OVA file -> MONARC_v2.12.2@c27e4c8572489b762f667b28d42c5c1626bfe017)
OS version (client) Win11
PHP version 7.0, 7.1...
MONARC version / git hash 2.12.2
Browser Firefox, Chrome, Safari

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions