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

[Bug]: Hop Gui lets users create loops in workflows #4310

Closed
bamaer opened this issue Sep 10, 2024 · 2 comments
Closed

[Bug]: Hop Gui lets users create loops in workflows #4310

bamaer opened this issue Sep 10, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@bamaer
Copy link
Contributor

bamaer commented Sep 10, 2024

Apache Hop version?

SNAPSHOT-20240910

Java version?

openjdk version "17.0.11" 2024-04-16 LTS

Operating system

macOS

What happened?

Error.mp4

When Apache Hop users try to create a hop in the opposite direction of an existing hop, there's an Ok/Cancel popup that warns about the loop, but the hop is created anyway.

This is caused by the check for loops here, which causes hopCandidate to disappear and become null in workflowMeta.removeWorkflowHop(hopCandidate);

a quick fix/workaround could be to keep hopCandidate in a second variable to make sure it doesn't get lost.
However, hopCandidate shouldn't get lost, and there could be similar issues in the pipeline hops.

Issue Priority

Priority: 3

Issue Component

Component: Hop Gui

@bamaer
Copy link
Contributor Author

bamaer commented Sep 11, 2024

.take-issue

@github-actions github-actions bot added this to the 2.10 milestone Sep 11, 2024
@bamaer
Copy link
Contributor Author

bamaer commented Sep 11, 2024

the easiest fix to prevent this in the workflow editor is to remove the ok/cancel options in this dialog, and only use an ok button. There shouldn't be any choices for an option that is not allowed: click 'ok' and the incorrect is never created or removed right away.

bamaer added a commit to bamaer/hop that referenced this issue Sep 11, 2024
bamaer added a commit to bamaer/hop that referenced this issue Sep 12, 2024
@hansva hansva closed this as completed in 746bcf1 Sep 25, 2024
hansva added a commit that referenced this issue Sep 25, 2024
prevent invalid workflow hops, preliminary fix. #4310
Adalennis pushed a commit to Adalennis/hop that referenced this issue Oct 1, 2024
Adalennis pushed a commit to Adalennis/hop that referenced this issue Oct 1, 2024
Adalennis pushed a commit to Adalennis/hop that referenced this issue Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant