OpenIdentityPlatform / OpenAM

OpenAM is an open access management solution that includes Authentication, SSO, Authorization, Federation, Entitlements and Web Services Security.
https://www.openidentityplatform.org/openam
Other
773 stars 151 forks source link

Some openam REST APIs return 500 error code when upgraded from an older version #795

Closed pdaterao closed 1 month ago

pdaterao commented 1 month ago

Describe the bug

REST APIs returning a list of objects return a 500 error code with the following message instead.

Can not start an object, expecting field name (context: Object)

The same APIs work if it is a fresh configuration.

APIs that fail with 500 error code:

{{baseurl}}/groups?_queryFilter=true
{{baseurl}}/users?_queryFilter=true

To Reproduce Steps to reproduce the behavior:

  1. Upgrade openam to 13.0.0 from version 10.0.0
  2. Upgrade openam to 14.x from version 13.0.0
  3. Call the above mentioned APIs
  4. See error

Expected behavior Return list of objects (users or groups)

Desktop (please complete the following information):

Additional context None

vharseko commented 1 month ago

Please provide

pdaterao commented 1 month ago

openam_rest_errors.har.zip Attached the HAR file.

No relevant errors were observed in the los under $CONFIG_DIR/openam/{debug,log} Are you looking for any specific file. Please let me know.

vharseko commented 1 month ago

try How to make OpenAM log more verbose or attach zip for reproduce

pdaterao commented 1 month ago

[logs.zip] See attached.

vharseko commented 1 month ago
Caused by: java.nio.channels.UnresolvedAddressException
    at sun.nio.ch.Net.checkAddress(Net.java:104)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:621)
    at org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler.connectAsync(TCPNIOConnectorHandler.java:137)

please check sun-idrepo-ldapv3-config-ldap-server=oak-vcs643 ... settings or remove this datastore

pdaterao commented 1 month ago

Removed the datastore. Still observing the issue. See attached logs. [logs.zip]

vharseko commented 1 month ago

check Configuration -> Global -> REST APIs -> Default Version: Latest

Снимок экрана 2024-09-26 в 20 07 13