On 08/13/2009 10:20 AM, Andy Speagle wrote:
On Wed, 2009-08-12 at 18:01 -0500, Justin Sherrill wrote:
I think re-running this sql script will fix all the currently broken
channels, but you'll have to rerun it to fix newly created channels
every time (until a permanent fix gets created):
SQL> UPDATE rhnChannel SET
checksum_type_id = (select id
from rhnChecksumType
where LABEL = 'sha1')
WHERE checksum_type_id is null;
-Justin
Hi Team,
I hate to kick a dying horse... but I tried this. Updating the database
directly did indeed update the record for the channel I just cloned,
however, I think because I've added the check that Prad suggested to the
webform, it's keeping me from being able to edit anything about this
channel. After making the SQL change, when I try to edit the cloned
channel it shows SHA-256.. because of the minor check that I added:
- form.set("checksum", c.getChecksum().getLabel());
+ if (!c.isCloned()) {
+ form.set("checksum", c.getChecksum().getLabel());
+ }
I think that field isn't getting set in the form. So, while displaying
the webform works (and that field defaults to SHA-256) trying to edit it
without having anything in that field causes it to bork?
I'm really not sure here...
Thoughts?
Right whats happening here is. Your channel creation has pass3ed with
above patch. But since the checksum is not set in perl code, you're
checksum value is still null in the db and hence the traceback while
editing. Now you need to rerun the update table to fix the empty rows.
I'll be working on a patch to fix this issue sometime today and build
new packages. I'll let you know when the new packages are ready. Should
be no later than tomorrow.
~ Prad
------------------------------------------------------------------------
_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel
--
--
Pradeep Kilambi
Senior Software Engineer
RHN Satellite Engineering
Phone: +1 919 754 4285
RHCE # 805008680430554
_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel