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

Recursive view model results in PageSecurity infinite recursion #94

Open
mtornwall opened this issue Apr 2, 2019 · 2 comments
Open
Assignees
Labels

Comments

@mtornwall
Copy link
Contributor

mtornwall commented Apr 2, 2019

Authorization goes into infinite recursion on recursively defined view models.

Example of problematic view model:

// View model `App.FooViewModel`
{
    "NodeTemplate": {
        // ...
       "Children": [
            {
                "$": {
                    "Reuse": "App.FooViewModel.NodeTemplateJson"
                }
            }
       ]
    }
}
@miyconst
Copy link
Member

miyconst commented Apr 5, 2019

I have fixed the case with the nested array of the same type, but it still fails with nested object of the same type, this still fails:

"Children": {
    "$": {
        "Reuse": "App.FooViewModel.NodeTemplateJson"
    }
}

Current fix will be available in 3.8.1 version.

@miyconst miyconst assigned miyconst and unassigned kegor Apr 17, 2019
@miyconst
Copy link
Member

The issue is currently on hold due to a bug / limitation in Starcounter.XSON. The constructions specified in the comment above are not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants