Bug 804139
Summary: | Bundle deploy error, fails SHA256 check | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Mike Foley <mfoley> | ||||||||
Component: | Provisioning | Assignee: | John Mazzitelli <mazz> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | urgent | ||||||||||
Version: | 4.4 | CC: | hrupp, mazz, skondkar | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | JON 3.1.0 | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2013-09-03 15:15:13 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 782579 | ||||||||||
Attachments: |
|
Description
Mike Foley
2012-03-16 15:48:29 UTC
Created attachment 570638 [details]
sample bundle
Created attachment 570639 [details]
server log
Created attachment 570640 [details]
screenshot of client
1st error in server log 2012-03-16 11:42:49,926 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 1, SQLState: 23000 2012-03-16 11:42:49,926 ERROR [org.hibernate.util.JDBCExceptionReporter] ORA-00001: unique constraint (RHQ.RHQ_BUNDLE_DESTINATION_UNIQUE) violated 2012-03-16 11:42:49,927 ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with the bundle file is called "a.txt" whose content is "a=b". but when the agent streams it down, the content of the file is "a=btyBlob" I searched the codebase for "tyBlob" and here's what I find: /** * Can be used as initial contents for a PackageVersion's PackageBits whenever a predictable non-null * value is required. Use as an initial value for the PackageBits.blob.bits. The value will * typically be replaced with the actual streamed content bits...<br> * Note: This is a String and not a byte[] because gwt can't handle String.getBytes(). */ public static final String EMPTY_BLOB = "EmptyBlob"; It seems that: org.rhq.enterprise.server.content.ContentManagerBean.initializePackageBits(PackageBits) initializes the content - but if the file content is less than 9 chars, it doesn't clear out the rest! this looks related to bug #611456 git commit to master: 0e44e44 please check this against Oracle DB as well as Postgres. Once you see that this deploys properly, as a final check, DELETE the bundle. (that is, go to the main bundle list view in the GUI, select the test bundle and click the delete button). See that it deletes properly. Again, do this on both Postgres AND Oracle. Verified on Version: 3.1.0.BETA1 Build Number: 95ef567:68f5518 Uploaded and deployed the attached sample bundle successfully. Also verified that the bundle gets deleted successfully. Verified on Postgres 8.3.8 and Oracle11G. Bulk closing of old issues in VERIFIED state. |