What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
*SPRYKER ADVISORY* Availability issue after DMCA takedown request against
Availability issue after DMCA takedown request against GitHub - codeitnowin/barcode-generator leading to dependency problem within Spryker repository GitHub - spryker/code-it-now
On April 21st, we discovered that deployments started to fail in development and CI environments because one of the project's common dependencies (codeitnowin/barcode-generator) became unavailable. Spryker barcode capability depends on this code.
Investigation into the cause of the unavailability revealed that a DMCA takedown request against this third-party repository prompted GitHub to restrict access to this repository.
Normal operations of deployed production environments are not affected and will continue to work unchanged as long as no deployment is made.
For projects using the above module(s), because the affected dependency can no longer be resolved, deployment pipelines will fail.
If you are unsure whether you are using the above module, you can check your project’s composer.lock file for references to it. If that is not possible for you, the module is commonly used in the following business use cases:
• Shopping List - when a customer wants to print a shopping list
• Return Management - when a customer or a back-office user wants to print a return label
• Produce Information Management - inside Spryker back office via the Product Barcode page that lists the SKU with their barcode.
If you are using such functionality, please contact your solution partner or technical personnel so that they can help you determine if the affected module is used in your project.
Spryker released a patch version 1.0.1 (https://github.com/spryker/code-it-now/tree/1.0.1) for the CodeItNow module that removed the dependencies impacted by the DMCA issue. The patch changes the functionality of spryker/code-it-now in the following way:
Existing Code128BarcodeGeneratorPlugin for the barcode generation will return a base64 image with a deprecation message: "Barcode generation temporarily unavailable.”
The printing Barcode feature will be mocked after integrating the patch into your project (providing a dummy picture instead of a working QR code).
While this will unblock deployments again, please note that the core functionality of the module will be removed until a replacement is found for it. If your project depends heavily on the original functionality, please consider holding back a release that would update the affected module to the latest version until a permanent solution is found.
Here are the steps to update the module:
Execute on your dev machine composer update spryker/code-it-now.
Confirm that version 1.0.1 is installed now. If not, use composer why to check the reasons and resolve any blockers.
Ensure that you don’t have any other dependency on the codeitnowin/barcode library in your code. You can run composer remove codeitnowin/barcode if you have introduced this dependency yourself.
After this step barcode image will be replaced with a dummy image with the message “Barcode generation temporarily unavailable.”
Run your tests, and check that the message is available in the barcode generating features.
Proceed with automated tests and deployments.
If your deployments should fail still or if you are having problems with the steps outlined above, please reach out to our support team via the Support or Partner Portal.
Alternative Workaround: Use Custom Barcode Generator
If you are dependent on the QR Code generator functionality and have a service for its generation available in your internal tech landscape already, you can implement an integration to the existing barcode generator service or implement a new service yourself.
For that you will need to implement a plugin for \Spryker\Service\BarcodeExtension\Dependency\Plugin\BarcodeGeneratorPluginInterface and return a BarcodeResponseTransfer that has coded image and its type (e.g. base64).
Coded image should be based on barcode data used by a BarcodeGeneratorPluginInterface::generate() method.
The Spryker team is looking into providing a solution to re-enable the Barcode feature’s functionality, and we will release another statement to be published on the Support-, the Partner Portal, as well as our Chat (this thread) in our Community Slack as a follow up to this note. We plan to provide an update on this matter via these channels until the end of CW17 latest.
- All Categories
- 40 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 44 Spryker News
- 722 Developer Corner
- 569 Spryker Development
- 63 Spryker Dev Environment
- 376 Spryker Releases
- 32 Propel ORM
- 49 Community Projects
- 6 Gacela Project
- 3 PHP Bridge
- 22 Hackathon
- 18 Job Opportunities
- 3.2K 📜 Slack Archives
- 115 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 29 Product & Business Questions
- 57 Spryker Safari Questions
- 46 Random