Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Fix upload command #62

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

svenmuennich
Copy link
Member

Shopware changed their store API to require a different sequence of requests when uploading a new binary or replacing an existing binary.

Old sequence:

  1. Upload the plugin .zip file to create a new binary entity.
  2. Set version, changelog, compatible Shopware versions and options on the binary received in 1.
  3. Save the modified binary.

New sequence:

  1. Validate the plugin .zip file (only when creating a new version).
  2. Create a new binary with version, changelog and compatible Shopware versions (only when creating a new version).
  3. Upload the plugin .zip file for the new or existing binary.
  4. Update version, changelog, compatible Shopware versions and options of the new or existing binary again.

Since Shopware stopped supporting ionCube encryption (it is no longer offered when creating a release via their account UI) I also deprecate the respective command option with this PR.


Fixes #61

@hanneswernery
Copy link

"briliant"
brilliant

Copy link

@hanneswernery hanneswernery left a comment

Choose a reason for hiding this comment

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

Looks okay to me. One suggestion. You can choose to ignore it if you want to go ahead with the merge.

Comment on lines +177 to +178
// ionCube encryption is no longer supported
ionCubeEncrypted: false,

Choose a reason for hiding this comment

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

Can't we just skip sending the parameter then?

Copy link
Member Author

Choose a reason for hiding this comment

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

The request sent by the Shopware account app contained this in its payload. Without it I got an HTTP 400.

@svenmuennich svenmuennich merged commit 4876b8d into master May 7, 2024
2 checks passed
@svenmuennich svenmuennich deleted the svenmuennich/fix-plugin-upload branch May 7, 2024 14:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

404 error responses on some Shopware API requests
2 participants