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

#10262: Map (created with context) crashes if the export plugin is set up to be hidden to certain groups and the user is not logged in #10270

Merged
merged 2 commits into from
May 2, 2024

Conversation

mahmoudadel54
Copy link
Contributor

Description

In this PR, I made an edit for parseExpression method in PluginUtils.js file to handle verifying the chaining if exists within cfg expressions

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

#10262

What is the current behavior?
#10262

What is the new behavior?
The map context works well without crashing in the case of #10262

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

…rt plugin is set up to be hidden to certain groups and the user is not logged in

Description:
- edit parseExpression method in PluginUtils to handle the chanining within cfg expressions
Copy link
Contributor

@MV88 MV88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unit test needed

web/client/utils/PluginsUtils.js Show resolved Hide resolved
…rt plugin is set up to be hidden to certain groups and the user is not logged in

Description:
- add unit test to test parseExpression change
@mahmoudadel54 mahmoudadel54 requested a review from MV88 May 2, 2024 15:41
@MV88 MV88 merged commit 9203e24 into geosolutions-it:master May 2, 2024
6 checks passed
@MV88
Copy link
Contributor

MV88 commented May 2, 2024

@ElenaGallo please test it in DEV

@MV88 MV88 added the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label May 2, 2024
@ElenaGallo ElenaGallo self-requested a review May 2, 2024 16:08
@ElenaGallo
Copy link
Contributor

Test passed, @mahmoudadel54 please backport to 2024.01.xx. Thanks

mahmoudadel54 added a commit to mahmoudadel54/MapStore2 that referenced this pull request May 9, 2024
…rt plugin is set up to be hidden to certain groups and the user is not logged in (geosolutions-it#10270)

* geosolutions-it#10262: Map (created with context) crashes if the export plugin is set up to be hidden to certain groups and the user is not logged in
Description:
- edit parseExpression method in PluginUtils to handle the chanining within cfg expressions

* geosolutions-it#10262: Map (created with context) crashes if the export plugin is set up to be hidden to certain groups and the user is not logged in
Description:
- add unit test to test parseExpression change
@mahmoudadel54
Copy link
Contributor Author

mahmoudadel54 commented May 9, 2024

Test passed, @mahmoudadel54 please backport to 2024.01.xx. Thanks

@ElenaGallo

Backport is done ---> #10298

tdipisa pushed a commit that referenced this pull request May 10, 2024
…t up to be hidden to certain groups and the user is not logged in (#10270) (#10298)

* #10262: Map (created with context) crashes if the export plugin is set up to be hidden to certain groups and the user is not logged in
Description:
- edit parseExpression method in PluginUtils to handle the chanining within cfg expressions

* #10262: Map (created with context) crashes if the export plugin is set up to be hidden to certain groups and the user is not logged in
Description:
- add unit test to test parseExpression change
@tdipisa tdipisa removed the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants