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

fix: apache does not serve the jwks.json on Janssen installation with test data #5655

Closed
ossdhaval opened this issue Jul 26, 2023 · 4 comments · Fixed by #5700
Closed

fix: apache does not serve the jwks.json on Janssen installation with test data #5655

ossdhaval opened this issue Jul 26, 2023 · 4 comments · Fixed by #5700
Assignees
Labels
comp-jans-linux-setup Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality

Comments

@ossdhaval
Copy link
Contributor

ossdhaval commented Jul 26, 2023

Describe the bug
After installing Janssen Server using test load option (-t), expectation is that URL below should be available:

https://host-name/jans-auth-client/test/resources/jwks.json

But this is not the case. This URL returns 404.

As #5634 is fixed, the expectation is that this URL will work. Just like it works for jenkins-build.jans.io

Possible solution or workaround
While trying to find a solution, I noted in the /etc/apache2/vhosts.d/_https_jans.conf file the entry of
DocumentRoot "/srv/www/htdocs". Upon unzipping the jans_test_client_keys.zip at location pointed by DocumentRoot, it has started serving the JSON. I am not sure of this can become the solution.

To Reproduce

  1. install Jans with -t option
  2. Try to access URL above

Expected behavior
URL should serve JSON

@ossdhaval ossdhaval added kind-bug Issue or PR is a bug in existing functionality comp-jans-linux-setup Component affected by issue or PR labels Jul 26, 2023
@devrimyatar
Copy link
Contributor

@ossdhaval I can't reproduce this issue, may be you are using installer before this commit 4b00a3a

image

@moabu
Copy link
Member

moabu commented Jul 31, 2023

I'm getting the same issue @devrimyatar while testing . Hitting that url with -t enabled and installed gives me a 404 on ubuntu with the latest hot install.

tree /opt/jans/jans-setup/output/test  
/opt/jans/jans-setup/output/test
|-- jans-auth
|   `-- schema
|       `-- 102-oxauth_test.json
`-- scim-client
    `-- schema
        `-- 103-scim_test.json

4 directories, 2 file
cat /opt/jans/jans-setup/setup.properties.last | grep "load"
downloadWars=False
loadData=True
loadTestData=True
loadTestDataExit=False

command used to install

python3 install.py -yes --args="-f setup.properties -n -t"

@devrimyatar
Copy link
Contributor

It happens on SUSE installation.

@moabu
Copy link
Member

moabu commented Aug 1, 2023

Also happened on ubuntu 22.04. I'll check and see if this is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-linux-setup Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants