On 1/3/2012 1:16 PM, Scott Worthington wrote:
> Hello,
> 
> I am trying to clone a kickstart in Spacewalk 1.6 by doing the
> following (it generates a WEB TRACEBACK)
> 
> Spacewalk --> Systems --> Kickstart --> Profiles -->
> click on an existing Kickstart Profile Label --> click on
> "clone kickstart" --> type in a new, valid Kickstart Label -->
> click on "Clone Kickstart"
> 
> Web GUI returns "Internal Server Error"
> 
> Exception section from WEB TRACEBACK contains:
> 
> Exception:
> javax.servlet.ServletException: org.hibernate.PropertyValueException:
> not-null property references a null or transient value:
> com.redhat.rhn.domain.kickstart.KickstartScript.scriptName
>       at 
> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
>       at 
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)
>       at 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)

<snip>

>       at java.lang.Thread.run(Thread.java:636)
> Caused by: org.hibernate.PropertyValueException: not-null property
> references a null or transient value:
> com.redhat.rhn.domain.kickstart.KickstartScript.scriptName
>       at 
> org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
>       at 
> org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:290)
>       at 
> org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)

<snip>

> 
> I can create kickstarts, but I cannot clone existing kickstarts.
> 
> Can anyone else clone kickstarts on 1.6 without error?

It seems that if you have a Kickstart that has Scripts but the 
"Script Name" field is blank, then the clone function will fail.

Filling in the "Script Name" field for each kickstart script
will allow the kickstart to be cloned.

Perhaps "Script Name" should now be a required field in the
web GUI and not allowed to be blank.

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to