Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data.get('file.yaml') will return class com.orientechnologies.orient.core.db.record.OTrackedMap #747

Closed
bmarwell opened this issue Feb 11, 2022 · 2 comments · Fixed by #757
Assignees
Milestone

Comments

@bmarwell
Copy link

for example, given this file:
https://github.com/apache/shiro-site/blob/6b06cb888e04febf8216d82c1043fb27eea45044/data/authors.yaml

actual behaviour

When importing using
<#assign authors = data.get('authors.yaml').authors />

The returned type will be com.orientechnologies.orient.core.db.record.OTrackedMap

expected behaviour

A hash is returned without methods like getClass(). Just the author names as keys and the data as values.

version

          <dependency>
            <groupId>org.jbake</groupId>
            <artifactId>jbake-core</artifactId>
            <version>2.7.0-rc.4</version>
          </dependency>
@jonbullock
Copy link
Member

Thanks for sample file, I'll have to investigate this further.

@jonbullock
Copy link
Member

Snakeyaml returns a LinkedHashMap which is put into OrientDB but it returns the OTrackedMap instead, need to understand why this is happening first before changing anything.

@jonbullock jonbullock self-assigned this Mar 10, 2022
@jonbullock jonbullock added this to the v2.7.0 milestone Mar 10, 2022
jonbullock added a commit to jonbullock/jbake that referenced this issue Mar 20, 2022
Force the OrientDB type rather than let OrientDB decide.
jonbullock added a commit that referenced this issue May 30, 2022
Resolves #747 - OTrackedMap returned for contents of data file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants