| Summary: | Dual maven repositories unable to remove malicious dependency in Business Central | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Radovan Synek <rsynek> | ||||||
| Component: | Business Central | Assignee: | manstis | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Radovan Synek <rsynek> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 6.0.0 | CC: | david, etirelli, manstis | ||||||
| Target Milestone: | ER5 | ||||||||
| Target Release: | 6.0.0 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-08-06 20:18:51 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
Radovan Synek
2013-10-18 14:11:23 UTC
Created attachment 813792 [details]
screenshot - Project Screen error message
I have fixed the problem demonstrated in the latest screenshot (i.e. "Loading..." still showing after the error popup). I have also checked that removing the dependency from the project results in a successful build; and that removing the Cigna JAR from the Guvnor M2 Repository removed it from the underlying /repository folder. If there is something I've missed please let me know. From the description is not fully clear what the root cause is.
The main problem is that business central uploads JARs into two repositories (one in a ${working directory}/repository and one in ~/.m2/repository) but deletes them only from the first one. When user deletes JAR from Asset Repository, it needs to be removed from both maven repositories.
Hello, I've being doing some research and chatted to a few colleagues that know more about Maven than I. The common opinion is that we should *not* be deleting any artifact from a "remote" maven repository (which is what /bin/repository represents). We can however delete from a "local" repository, i.e. .m2. That said, this suggests the ability to delete JARs in the Asset Repository at best can only *ever* do half of it (as we should never delete from "remotes") and therefore I wonder if we should remove the ability to delete all together. WDYT? The root cause of the problem we now discuss, is that you could not delete a dependency from a project within the workbench. This has been fixed (https://bugzilla.redhat.com/show_bug.cgi?id=1018968). Cheers, Mike After discussing this issue we agreed that there is no need for delete operation in Asset Repository at all. Any malicious dependency can be removed from the corresponding project now (bug 1018968) and deleting artifacts from maven repositories cannot be considered as the best practice. Verified on BRMS-6.0.0.ER5 qe_test_coverage: see comment 7 |