Skip to content

Can not access realm scripts page #35

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

Closed
SamyOteroGlez opened this issue May 24, 2018 · 8 comments
Closed

Can not access realm scripts page #35

SamyOteroGlez opened this issue May 24, 2018 · 8 comments
Assignees
Labels
Milestone

Comments

@SamyOteroGlez
Copy link

Describe the bug
After starting the Docker container (using the docker file provided in the repo), doing an openAM default configuration, we are unable to access the realm scripts page, (it shows nothing). We are unable to upload any OIDC claim groovy script.
We are also receiving two errors in the chrome console

Uncaught SyntaxError: Unexpected token <            backgrid-select-all-0.3.5-min.js?v=14.1.1:7
Uncaught TypeError: Cannot read property 'extend' of undefined      ThemeableSelectAllCell.js?v=14.1.1:38 

It happened with versions: 14.1.1, 14.1.2, 14.1.3 and 14.1.4
I need to use at least version 14.1.1

To Reproduce
Steps to reproduce the behavior:

  1. Start the docker image you provided (https://github.com/OpenIdentityPlatform/OpenAM/releases/tag/14.1.1)
  2. Do the default configuration
  3. Go to the upload scripts section

Expected behavior
Be able to click on the realm scripts link and upload an OIDC claim groovy script.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 14.04
  • Browser chrome, firefox
  • Version chrome: Version 63.0.3239.108 (Official Build) (64-bit), firefox: Version 46.0.1

I look forward to hearing from you.

Regards,
Samy

@SamyOteroGlez
Copy link
Author

An update.

We found that the issue is been caused by this file /OpenAM-14.1.1/XUI/libs/backgrid-select-all-0.3.5-min.js inside the .war file. It contains HTML instead of js. We believe the correct content of the file should be https://raw.githubusercontent.com/cloudflare/backgrid-select-all/master/backgrid-select-all.js.

I look forward to hearing from you.

Regards,
Samy

@SamyOteroGlez
Copy link
Author

Solved.

I had to uncompress the war file, modify /OpenAM-14.1.1/XUI/libs/backgrid-select-all-0.3.5-min.js file with the content from https://raw.githubusercontent.com/cloudflare/backgrid-select-all/master/backgrid-select-all.js and rebuild again the way file by running $ jar -cvf YOUR_WAR.war *.

For this, I had to use my own Dockerfile, not the one you provided, and use the war file and the configurator from your repo.

Regards,
Samy

@SamyOteroGlez
Copy link
Author

New Issue,

After saving the script, the list is still empty.

@vharseko vharseko self-assigned this May 25, 2018
@vharseko vharseko added the build label May 25, 2018
@vharseko vharseko added this to the 14.1 milestone May 25, 2018
vharseko added a commit to OpenIdentityPlatform/commons that referenced this issue May 25, 2018
vharseko added a commit to OpenIdentityPlatform/OpenDJ that referenced this issue May 25, 2018
vharseko added a commit that referenced this issue May 25, 2018
@SamyOteroGlez
Copy link
Author

SamyOteroGlez commented May 25, 2018

Thanks, a lot.

That fixed the blank page, but now after saving the OIDC claim script, when I go back, the list of scripts is still empty.

I look forward hearing from you.

Regards,
Samy

@dmaclam-pulse
Copy link

I am also able to recreate this issue. Looks like some of the other js assets are broken.

TypeError: filter.query is not a function in openam/XUI/org/forgerock/openam/ui/common/util/BackgridUtils.js?v=14.1.1

Thanks,
Daniel

@vharseko
Copy link
Member

@SamyOteroGlez
Copy link
Author

Fixed!

Thanks!!!

@SamyOteroGlez
Copy link
Author

I just notice that the script page is still busted, but only in chrome. I am using the latest version of chrome. I cant do an ajax request to load all the scripts. Looks like angular is failing. But this issue is not happening on firefox.

Regards,

maximthomas pushed a commit to maximthomas/OpenAM that referenced this issue Aug 28, 2019
vharseko pushed a commit that referenced this issue Aug 29, 2019
* Add an authz module for kbaInfo

* Use request locale in auth error messages (#31)

* Add OAuth 2 endpoint validation (#35)

* fix Issue10 Finish button of Identity Provider wizard doesn't work (#98)

* Issue #29 JavaMail debug logs are output to stdout (#97)

* disable javamail debug.

* Added copyright

* Use AUTH_LOGIN_FAILED, if user based authentication failed (#120)

* Issue #50 Deleting an instance of the authentication module registered by default also deletes the authentication modules of the same type (#100)

* Change to subConfig check first. and not remove all of tree if default module have subConfig

* add copyright to source code header

* wrong year in copyright

* fix UT
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