Bug 1021558

Summary: Spacewalk fails to generate DEB repository error on "setBuildTime"
Product: [Community] Spacewalk Reporter: Martin Juhl <m>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0CC: goetz.dirk, m
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-2.2.12-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-17 08:40:45 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1119298    
Attachments:
Description Flags
rhn_taskomatic_daemon.log
none
Solves problem, but maybe not the right way?? none

Description Martin Juhl 2013-10-21 14:00:11 UTC
Created attachment 814615 [details]
rhn_taskomatic_daemon.log

Description of problem:

After pushing a debian package:
http://nl.archive.ubuntu.com/ubuntu/pool/universe/j/joe/joe_3.7-2.3_amd64.deb

Spacewalk fails to generate repository metadata and fails with error: 

com.redhat.rhn.frontend.dto.PackageDto.setBuildTime(PackageDto.java:279)

I have tried with several different packages, all with the same result..

I have seen this working in the previous version (1.9)...

How reproducible:
Everytime

Steps to Reproduce:
1. Create channel, debian based (IA32 Debian or AMD64 Debian)
2. Push package to created channel..

Actual results:
Error appears in /var/log/rhn/rhn_taskomatic_daemon.log

Expected results:
Channel Metadate should be created...

Additional info:
/var/log/rhn/rhn_taskomatic_daemon.log is attached...

Comment 1 Martin Juhl 2013-12-02 14:31:19 UTC
Created attachment 831605 [details]
Solves problem, but maybe not the right way??

I have discovered that the reason for the failure is that the setBuildTime() function is called with an argument "buildTimeIn=NULL".. 

The attached patch handles this exception, even though I'm not sure that's the right way to fix the problem..

Comment 2 Martin Juhl 2014-01-27 12:31:35 UTC
Any comments on this patch???

Is it something we can get implemented???

Comment 3 Dirk Götz 2014-02-21 15:12:04 UTC
I am running in the same problem. 

I have created a rhn.jar with the patch applied and it works, but there is no date for last repo build and no information on repo cache status shown.

Perhaps this is the result from building the jar by unpacking, compiling the class file and repacking. But I have not got a good setup working.

Comment 4 Michael Mráka 2014-03-07 13:05:48 UTC
Fixed in spacewalk master by
commit 47e451d0c39986766b63e29e56236df27aeb4b41
    1021558 - if buildTime is null don't parse it

Comment 5 Milan Zázrivec 2014-07-17 08:40:45 UTC
Spacewalk 2.2 has been released:

    https://fedorahosted.org/spacewalk/wiki/ReleaseNotes22