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

Schema cannot be saved in admin UI #118

Open
michbart opened this issue Jan 11, 2022 · 1 comment
Open

Schema cannot be saved in admin UI #118

michbart opened this issue Jan 11, 2022 · 1 comment

Comments

@michbart
Copy link

When saving managed object's schema, operation ends with following error. Even when the schema wasn't changed, the error appears.

RepoDelegate.js?v=6.0.1:43 Uncaught TypeError: Cannot read properties of undefined (reading '_id')
    at AbstractDelegate.obj.getRepoTypeFromConfig (RepoDelegate.js?v=6.0.1:43)
    at saveManagedObject (AbstractManagedView.js?v=6.0.1:39)
    at saveManagedSchema (SchemaEditorView.js?v=6.0.1:197)
    at HTMLFormElement.r (lodash-3.10.1-min.js?v=6.0.1:26)
    at HTMLDivElement.dispatch (jquery-2.1.1-min.js?v=6.0.1:3)
    at HTMLDivElement.r.handle (jquery-2.1.1-min.js?v=6.0.1:3)

When saving schema with custom policy, following error appears.

Uncaught TypeError: Cannot set properties of undefined (setting 'isVirtual')
    at s.<anonymous> (AbstractManagedView.js?v=6.0.1:120)
    at r (lodash-3.10.1-min.js?v=6.0.1:26)
    at Pn (lodash-3.10.1-min.js?v=6.0.1:9)
    at Function.<anonymous> (lodash-3.10.1-min.js?v=6.0.1:30)
    at s.combineSchemaAndProperties (AbstractManagedView.js?v=6.0.1:118)
    at saveManagedObject (AbstractManagedView.js?v=6.0.1:35)
    at saveManagedSchema (SchemaEditorView.js?v=6.0.1:197)
    at HTMLFormElement.r (lodash-3.10.1-min.js?v=6.0.1:26)
    at HTMLDivElement.dispatch (jquery-2.1.1-min.js?v=6.0.1:3)
    at HTMLDivElement.r.handle (jquery-2.1.1-min.js?v=6.0.1:3)
@karelmaxa
Copy link
Member

karelmaxa commented Feb 27, 2024

There is a problem with the configuration endpoint (i.e. ConfigObjectService).

For a READ request, the data is returned:

HTTP GET /openidm/config
{
  "_id" : "",
  "configurations" : [
    ...
    {
      "_id" : "repo.jdbc",
      "pid" : "repo.jdbc",
      "factoryPid" : null
    },
    ...
  ]
}

For a QUERY request, the data is never returned (with any filter):

HTTP GET '/openidm/config?_queryFilter=true'
{
  "result" : [ ],
  "resultCount" : 0,
  "pagedResultsCookie" : null,
  "totalPagedResultsPolicy" : "NONE",
  "totalPagedResults" : -1,
  "remainingPagedResults" : -1
}

Admin UI performs QUERY operation in RepoDelegate.js#L35.

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

No branches or pull requests

2 participants