mattcasters opened a new pull request, #8291:
URL: https://github.com/apache/hop/pull/8291
When hop-server is started with `-j` / `-e` (or Docker `HOP_PROJECT_NAME` /
`HOP_ENVIRONMENT_NAME`), `/hop/execPipeline?pipeline=${PROJECT_HOME}/...`
failed even though absolute paths worked. `hop-run` was fine.
`enableProject()` wrote `PROJECT_HOME` and environment config variables onto
the CLI variable space, then `setupByFileName()` / `setupByHostNameAndPort()`
replaced `HopServerConfig` with a fresh space. A second mixin after root `-e`
could also skip applying those variables, or re-enable the project without
environment config files.
### Changes
- Keep applying project/environment variables when the same project is
already enabled; inherit `HOP_ENVIRONMENT_NAME` on a later mixin that has no
`-e`.
- Re-bind the enabled variable space and metadata provider after hop-server
rebuilds its config.
- Resolve execPipeline/execWorkflow paths against a per-request copy of the
live server variables (do not mutate the server space with query parameters).
- Load pipeline/workflow files through VFS with the parent variable space.
- hop_server IT: start environment `server-dev`, add `main-0016` for
`${PROJECT_HOME}` and environment vars, run hop-server as the test-runner uid,
and chmod the mapped `output-0015` folder so main-0015 is not AccessDenied.
Fixes #8284
------------------------
Thank you for your contribution! Follow this checklist to help us
incorporate your contribution quickly and easily:
- [x] Run `mvn clean install apache-rat:check` to make sure basic checks
pass. A more thorough check will be performed on your pull request
automatically.
- [x] If you have a group of commits related to the same change, please
squash your commits into one and force push your branch using `git rebase -i`.
- [x] Mention the appropriate issue in your description (for example:
`addresses #123`), if applicable.
To make clear that you license your contribution under the [Apache License
Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
you have to acknowledge this by using the following check-box.
- [x] I hereby declare this contribution to be licensed under the [Apache
License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
- [ ] In any other case, please file an [Apache Individual Contributor
License Agreement](https://www.apache.org/licenses/icla.pdf).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]