-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 986049 sp1 #222
Bug 986049 sp1 #222
Conversation
@@ -1,4 +1,10 @@ | |||
------------------------------------------------------------------- | |||
Fri Jun 24 12:50:20 CEST 2016 - schubi@suse.de | |||
|
|||
- Check if AutoYaST "script" elements are hashes. (bnc#986049) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, so what happens if they are not?
For reference, the chapter of the manual about scripts: https://www.suse.com/documentation/sles-12/singlehtml/book_autoyast/book_autoyast.html#createprofile.scripts |
I am not sure this is a good approach. Is the profile actually valid? It breaks when the profile contains a "script" element containing whitespace: <script>
</script passing We could also add a custom
|
Well, that's a general problem of AutoYaST. It does not make a semantical check and I do not want to force a xmllint check before parsing because the rng files are so often broken that user will not be amused. |
@mvidner what is status here? it start rotting |
@mvidner I guess we could "strip" the string and remove the element if it's empty. But, should it be done while parsing (C++ part or Ruby part) or only while importing the profile? Or maybe you have a better idea... |
I have reconsidered, this would be bad for backward compatibility.
I think this is the way to go. But it does not have to be part of this PR. So this is OK, once we resolve the merge conflict . |
@@ -1,4 +1,11 @@ | |||
------------------------------------------------------------------- | |||
Fri Jun 24 12:50:20 CEST 2016 - schubi@suse.de |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Knights of the Chronological Order wouldn't like this. Please use today's date
LGTM, thank you! |
bsc#986049