Bug 1249570 - rhcert should check if the rhcert.xml.gz file created is valid or not before sending it to CWE
rhcert should check if the rhcert.xml.gz file created is valid or not before ...
Status: NEW
Product: Red Hat Certification Program
Classification: Red Hat
Component: redhat-certification (Show other bugs)
1.0
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Greg Nichols
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-03 06:31 EDT by Anshul Behl
Modified: 2015-08-03 10:17 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Anshul Behl 2015-08-03 06:31:32 EDT
Description of problem:

Currently, there are no checks in rhcert to see if the rhcert.xml.gz file is valid or not. 

Actual results:
Results are forwarded to CWE


Expected results:
File if not valid should not be submitted to CWE

http://file.pnq.redhat.com/abehl/rhcert-results-rhel7-41-171.englab.brocade.com-20150727095809.xml.gz is an invalid file which was submitted and caused failures in CWE side.
Comment 1 Greg Nichols 2015-08-03 09:31:06 EDT
What is invalid with the above file?   What validity checks would you like rhcert to add?
Comment 2 Anshul Behl 2015-08-03 09:55:10 EDT
This file does not have the attachment tag which contains the encoded base64 content which in turn can be decoded to create the original attachment itself.
I am not sure what resulted in the formation of such file, but we can make rules like if attachment tag is not present for a file it is invalid.
Comment 3 Greg Nichols 2015-08-03 10:15:00 EDT
So the real problem is the attachments are missing, correct?
Comment 4 Anshul Behl 2015-08-03 10:17:56 EDT
Yes, that is right and we can maybe catch the same thing on rhcert side or on CWE, partner should be informed saying that the file is not valid.

Note You need to log in before you can comment on or make changes to this bug.