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

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

Closed
pdaterao opened this issue Sep 24, 2024 · 7 comments

Comments

@pdaterao
Copy link

pdaterao commented Sep 24, 2024

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):

  • OS: Windows Server 2019
  • Browser: chrome
  • Version: OpenAM 14.7.4

Additional context
None

@vharseko
Copy link
Member

vharseko commented Sep 24, 2024

Please provide

  • full request/response dump with curl or har
  • attach logs

@pdaterao
Copy link
Author

pdaterao commented Sep 24, 2024

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
Copy link
Member

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

@pdaterao
Copy link
Author

pdaterao commented Sep 26, 2024

[logs.zip]
See attached.

@vharseko
Copy link
Member

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
Copy link
Author

pdaterao commented Sep 26, 2024

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

@vharseko
Copy link
Member

check Configuration -> Global -> REST APIs -> Default Version: Latest
Снимок экрана 2024-09-26 в 20 07 13

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