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

CAM-11734 - make parsing of auhtorized engine header more robust #181

Merged
merged 2 commits into from Apr 8, 2020
Merged

CAM-11734 - make parsing of auhtorized engine header more robust #181

merged 2 commits into from Apr 8, 2020

Conversation

tobias-trame
Copy link
Contributor

@tobias-trame tobias-trame commented Mar 30, 2020

Due to our company's operation guidelines we need to deploy camunda to a predefined context path that looks like this: example.com/some/path/app/. Since camunda is adding another /app/ itself, the wrong engine name is parsed. As a consequence we get a wrong X-Authorized-Engine header and cannot use the features that require a license key.

In our example we have example.com/some/path/app/app/welcome/default/#!/login as window.location.href. The parser would take the second path segment after the first occurence of app which in our case would be welcome. But what we need is the engine name default. I changed the regular expression such that the parsing picks the last occurence of app using negative lookahead.

@marstamm marstamm self-assigned this Apr 3, 2020
@marstamm marstamm self-requested a review April 3, 2020 11:21
@marstamm
Copy link
Member

marstamm commented Apr 3, 2020

Hey @tobias-trame ,

thank you for your contribution! This feature makes a lot of sense, I will review it shortly. I also created the ticket CAM-11734 to track progress.

Cheers,
Martin

@marstamm marstamm changed the title make parsing of auhtorized engine header more robust CAM-11734 - make parsing of auhtorized engine header more robust Apr 3, 2020
camunda-commons-ui/lib/services/index.js Outdated Show resolved Hide resolved
Co-Authored-By: marstamm <stamm.czg@gmail.com>
@marstamm marstamm merged commit 49d0b08 into camunda:master Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants