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

Additional files deployment not working after latest update #4694

Closed
guilhermep opened this issue Nov 14, 2024 · 16 comments
Closed

Additional files deployment not working after latest update #4694

guilhermep opened this issue Nov 14, 2024 · 16 comments
Assignees
Labels
bug Something isn't working Camunda 7 Flags an issue as related to Camunda Automation Platform 7 deploy
Milestone

Comments

@guilhermep
Copy link

Describe the bug

I'm unable to attach more than one file to a process deployment after updating to v5.29. Disabling all plugins had no effect.

Steps to reproduce

  1. Open a bpmn file
  2. Click the deployment button
  3. Select multiple additional files
  4. Only the first file is shown
  5. Click deploy
  6. If the deployment is successful, only the first selected file is deployed
  7. Regardless of whether the deployment was successful or not, subsequent attempts are not possible because the deployment button becomes unresponsive
  8. The following output is shown in DevTools after clicking the deployment button:
    image

Expected behavior

Multiple files should be attached and deployed

Environment

  • OS: Windows 11 and Windows 10
  • Camunda Modeler Version: 5.29
  • Execution Platform: Camunda 7

Additional context

No response

@guilhermep guilhermep added the bug Something isn't working label Nov 14, 2024
@barmac
Copy link
Collaborator

barmac commented Nov 14, 2024

Thank you for reporting. I can reproduce it in 5.29.0 only. This is a regression.

@barmac barmac added ready Ready to be worked on Camunda 7 Flags an issue as related to Camunda Automation Platform 7 deploy labels Nov 14, 2024
@guilhermep
Copy link
Author

This is being caused by a breaking change in Electron:
https://www.electronjs.org/docs/latest/breaking-changes#removed-filepath

@barmac barmac mentioned this issue Nov 18, 2024
4 tasks
@barmac barmac self-assigned this Nov 19, 2024
@barmac barmac added the in progress Currently worked on label Nov 19, 2024 — with bpmn-io-tasks
@barmac barmac removed the ready Ready to be worked on label Nov 19, 2024
@barmac
Copy link
Collaborator

barmac commented Nov 20, 2024

I am looking into this issue right now. I noticed that the saved configuration is broken too, as we "serialize" the files to this:

[
  { "path": undefined }
]

barmac added a commit that referenced this issue Nov 20, 2024
barmac added a commit that referenced this issue Nov 20, 2024
@wunderkind2k1
Copy link

I have this problem on both 5.28 and 5.29

image

@barmac
Copy link
Collaborator

barmac commented Nov 20, 2024

A fix is in progress :)

@wunderkind2k1
Copy link

Thank you @bMarc. I just ran a local build on osx (ARM) from branch 24694-make-multi-file-deployment-work-again- can confirm - its not fixed yet. Will track the merge. Again: thank you very much.

@barmac
Copy link
Collaborator

barmac commented Nov 20, 2024

Can you paste here the contents of the devtools when you encounter the problem on my branch? You can access it with F12.
This might be a problem with preexisting configuration.

@wunderkind2k1
Copy link

DeploymentTool.js:683 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'split')
    at DeploymentTool.js:683:19
    at async Promise.all (index 0)
    at async tt.withAttachments (DeploymentTool.js:462:11)
    at async tt.getSavedConfiguration (DeploymentTool.js:370:7)
    at async tt.deployTab (DeploymentTool.js:123:9)

image

@barmac
Copy link
Collaborator

barmac commented Nov 20, 2024

Thanks. It looks that we'd need to handle the broken config in that case.
When you deploy, we save the last configuration. Files are serialized as { path: string } objects, but since path is missing, the serialization fails silently.

@wunderkind2k1
Copy link

Are you about to create an automated repair of the configuration then? Or shall/ may/ I try fix the config manually in my case as this is supposedly a one time only problem?

@barmac
Copy link
Collaborator

barmac commented Nov 20, 2024

Can you please check if the deployment works for you with the current contents of the branch? We will likely fail gracefully, so there will be no file read from the config as path is missing, but at least you can deploy.

@barmac
Copy link
Collaborator

barmac commented Nov 20, 2024

This is how it is supposed to look for the legacy-broken config:
image

@wunderkind2k1
Copy link

Yes. Confirmed:
image

After deleting and adding the correct form files. The deployed worked again. Further deployments seem to be working too. Awesome. Thank you.

@barmac
Copy link
Collaborator

barmac commented Nov 20, 2024

Great! Thank you for your support :)

@barmac
Copy link
Collaborator

barmac commented Nov 20, 2024

The fix will land in the upcoming 5.30.0 release.

barmac added a commit that referenced this issue Nov 20, 2024
This makes sure the deployment tool can still open for configs
broken in 5.28 and 5.29.

Related to #4694 (comment)
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Nov 20, 2024
barmac added a commit that referenced this issue Nov 21, 2024
barmac added a commit that referenced this issue Nov 21, 2024
barmac added a commit that referenced this issue Nov 21, 2024
This makes sure the deployment tool can still open for configs
broken in 5.28 and 5.29.

Related to #4694 (comment)
@barmac
Copy link
Collaborator

barmac commented Nov 21, 2024

Closed via #4708

@barmac barmac closed this as completed Nov 21, 2024
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Nov 21, 2024
@github-actions github-actions bot added this to the M83 milestone Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Camunda 7 Flags an issue as related to Camunda Automation Platform 7 deploy
Projects
None yet
Development

No branches or pull requests

3 participants