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

feat(config-api): save asset on server based on the service list provided #8406

Closed
pujavs opened this issue Apr 29, 2024 · 0 comments · Fixed by #8503
Closed

feat(config-api): save asset on server based on the service list provided #8406

pujavs opened this issue Apr 29, 2024 · 0 comments · Fixed by #8503
Assignees
Labels
comp-jans-config-api Component affected by issue or PR effort-3 Relative effort required for completion of issue or PR kind-enhancement Issue or PR is an enhancement to an existing functionality kind-feature Issue or PR is a new feature request priority-3 Issue or PR is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@pujavs
Copy link
Contributor

pujavs commented Apr 29, 2024

At present config-api asset endpoint requires the exact path to which the asset is to be uploaded.
Change is that based on the service provided the asset should be saved in the respective /otp/jans/jetty/{service}/custom/ folder.

Related issue and discussion

Logic regarding the asset-type and the directory where asset is uploaded on jetty-server:

  • Client to send the list of services where the asset needs to be uploaded on jetty-server
  • Service name provided by client needs to be exact as on the server
  • If more than one service is provided, API will upload the same asset to all the services
  • Restart of the service after upload is out of scope of API endpoint
  • Base directory where the asset will be uploaded will be /opt/jans/jetty/<service-name>/custom
  • Mapping of assets type and directory under /opt/jans/jetty/<service-name>/custom is as follows
Directory Asset Type Description
/opt/jans/jetty/<service-name>/custom/i18n properties Resource bundle file
/opt/jans/jetty/<service-name>/custom/libs lib java archive library
/opt/jans/jetty/<service-name>/custom/pages xhtml Web pages
/opt/jans/jetty/<service-name>/custom/static js, css, png, gif , jpg, jpeg Static resources like Java-script, style-sheet and images
@pujavs pujavs added kind-enhancement Issue or PR is an enhancement to an existing functionality comp-jans-config-api Component affected by issue or PR effort-3 Relative effort required for completion of issue or PR priority-3 Issue or PR is relevant to core functions, but does not impede progress. Important, but not urgent labels Apr 29, 2024
@pujavs pujavs self-assigned this Apr 29, 2024
@mo-auto mo-auto added the kind-feature Issue or PR is a new feature request label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-config-api Component affected by issue or PR effort-3 Relative effort required for completion of issue or PR kind-enhancement Issue or PR is an enhancement to an existing functionality kind-feature Issue or PR is a new feature request priority-3 Issue or PR is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants