After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 667666 - No need to deal with CRLF
No need to deal with CRLF
Status: RESOLVED INVALID
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-01-10 23:22 UTC by Zeeshan Ali
Modified: 2016-03-31 13:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
No need to deal with CRLF (2.39 KB, patch)
2012-01-10 23:22 UTC, Zeeshan Ali
none Details | Review
express,win7: No need to deal with CRLF (2.41 KB, patch)
2012-01-10 23:23 UTC, Zeeshan Ali
none Details | Review
express,win7,winxp: No need to deal with CRLF (2.41 KB, patch)
2012-01-10 23:23 UTC, Zeeshan Ali
none Details | Review

Description Zeeshan Ali 2012-01-10 23:22:21 UTC
Christophy discovered that windows 7 express install was broken again (perhaps others were borken too but didn't check). This patches fixes it.
Comment 1 Zeeshan Ali 2012-01-10 23:22:23 UTC
Created attachment 204991 [details] [review]
No need to deal with CRLF

Turns out that using CRLF somehow messes-up the copying of unattended
data. Since both Windows XP and 7 don't mind LF, lets just use LF for
all OSs.
Comment 2 Zeeshan Ali 2012-01-10 23:23:00 UTC
Created attachment 204992 [details] [review]
express,win7: No need to deal with CRLF

Turns out that using CRLF somehow messes-up the copying of unattended
data. Since both Windows XP and 7 don't mind LF, lets just use LF for
all OSs.
Comment 3 Zeeshan Ali 2012-01-10 23:23:43 UTC
Created attachment 204993 [details] [review]
express,win7,winxp: No need to deal with CRLF

Turns out that using CRLF somehow messes-up the copying of unattended
data. Since both Windows XP and 7 don't mind LF, lets just use LF for
all OSs.
Comment 4 Christophe Fergeau 2012-01-11 10:26:47 UTC
"somehow" messes up? Do you have more insight as to what's going on?
Comment 5 Zeeshan Ali 2012-01-11 14:15:26 UTC
(In reply to comment #4)
> "somehow" messes up? Do you have more insight as to what's going on?

No, do you? :)
Comment 6 Christophe Fergeau 2012-01-12 18:56:00 UTC
In my testing, this patch helps to get autoinstall to work (without it autoinstall doesn't work most of the time). No idea if it papers over the bug and if it will come back later or not. It's definitely not fixing the issue with CRLF, it's at best work arounding the problem by going back to a state that seemed to be working.
Comment 7 Zeeshan Ali 2012-01-12 20:23:40 UTC
(In reply to comment #6)
> In my testing, this patch helps to get autoinstall to work (without it
> autoinstall doesn't work most of the time).

Now you are getting me really confused. So you can still reproduce this bug with this patch in just not reliably? Cause "most of the time" would imply that.

> No idea if it papers over the bug
> and if it will come back later or not. It's definitely not fixing the issue
> with CRLF,

We don't know what the issue is so how can you say this with such certainty?

> it's at best work arounding the problem by going back to a state
> that seemed to be working.

We were using CRLF for windows and unattended didn't work for either of us. This patch just makes LF everywhere and unattended works after that so how is it a work-around? Just because we don't know the root cause of the problem, doesn't mean the solution is a work-around.

You are free to investigate this issue to find the root cause, I have many other things on my todo list and if a solution a. fixes the problem b. doesn't make the code ugly (this patch actually simplifies code) and c. doesn't break anything else, I don't see why such a patch shouldn't be applied immediately.
Comment 8 Christophe Fergeau 2012-01-12 20:56:55 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > In my testing, this patch helps to get autoinstall to work (without it
> > autoinstall doesn't work most of the time).
> 
> Now you are getting me really confused. So you can still reproduce this bug
> with this patch in just not reliably? Cause "most of the time" would imply
> that.

No no, I think you missed the "with*out* it". I've seen valid xml files being generated a few times without the patch. So I assume that it will work sometimes without the patch. So far, I didn't get a failure with the patch

> 
> > No idea if it papers over the bug
> > and if it will come back later or not. It's definitely not fixing the issue
> > with CRLF,
> 
> We don't know what the issue is so how can you say this with such certainty?
> 

See below for what I meant here

> > it's at best work arounding the problem by going back to a state
> > that seemed to be working.
> 
> We were using CRLF for windows and unattended didn't work for either of us.
> This patch just makes LF everywhere and unattended works after that so how is
> it a work-around? Just because we don't know the root cause of the problem,
> doesn't mean the solution is a work-around.

CRLF was added because it's the native line-ending on Windows so it's more natural to do that. Unfortunately switching to CRLF causes this bug, so you're basically suggesting to revert this CRLF change to "fix" the bug. Fixing the bug would mean still using CRLF and changing XXX which is causing the issue. The fact that we are not doing that but instead we remove a minor cosmetic feature is why I'm talking about a workaround.

> 
> You are free to investigate this issue to find the root cause, I have many
> other things on my todo list and if a solution a. fixes the problem

We disagree on what "fixing" means. All we know is that so far we didn't get the bug with this patch. There is 50% chance that the bug will come back in a slightly different form after some unrelated code changes.
Comment 9 Zeeshan Ali 2012-01-13 20:08:29 UTC
Ok so after a few hours of investigation, I believe I found out the root cause of this issue. There was a missing 'yield' keyword (src/unattended-installer.vala:284) that caused a race-condition: We were carrying on with domain creation/installation before waiting for the file to be copied to the floppy first.

Instead of just fixing that, I think I did something even better: I removed the need for the floppy image all together. See bug#67895 for details.