Uploaded image for project: 'Magnolia GraphQL'
  1. Magnolia GraphQL
  2. MGNLGQL-41

Configured asset property with no asset linked throws PathNotFoundException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.0
    • None
    • None

    Description

      Given the following configuration,

      datasource:
        workspace: characters
        namespaces:
          mt: https://www.magnolia-travel.com/jcr/1.0/mt
        autoCreate: true
      
      model:
        nodeType: mt:character
        properties:
          - name: name
            required: true
          - name: title
            required: true
            i18n: true
          - name: description
            type: richText
            i18n: true
          - name: pantheon
            required: true
          - name: releaseDate
            type: Date
          - name: friends
            type: reference:character
            multiple: true
          - name: stats
            type: stats
          - name: portrait
            type: asset
        subModels:
          - name: stats
            properties:
              - name: health
                type: Long
      

       and the following content where there are no values assigned for stats and portrait,

      the endpoint returns null for stats/health,

       

      but throws a PathNotFoundException for portrait/name

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                jsimak Jaroslav Simak
                mdrapela Martin Drápela
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 0.25d
                      0.25d