extra newline in .furl file breaks furls, and the resulting diagnostics are not user friendl #159

Closed
opened 2007-09-29 16:34:59 +00:00 by zooko · 4 comments

Sebastian and I accidentally left an extra newline at the end of our introducer.furl file, so somewhere deep in the node there was an AttributeError involving None.

Perhaps the node should be tolerant by stripping the contents of .furl files. Certainly it should check those contents for correct formatting early and report to the user explicitly about it.

Sebastian and I accidentally left an extra newline at the end of our introducer.furl file, so somewhere deep in the node there was an [AttributeError](wiki/AttributeError) involving None. Perhaps the node should be tolerant by stripping the contents of .furl files. Certainly it should check those contents for correct formatting early and report to the user explicitly about it.
zooko added the
code-nodeadmin
major
defect
0.6.0
labels 2007-09-29 16:34:59 +00:00
zooko added this to the 0.6.1 milestone 2007-09-29 16:34:59 +00:00
zooko self-assigned this 2007-09-29 16:34:59 +00:00
Author

Tried to reproduce this, and it works fine with an extra newline.

So I think the real problem was that I used notepad.exe (on Windows), and it left dos-style newlines ("\r\n") instead of unix-style. Just a guess. I'll try to reproduce that next.

Tried to reproduce this, and it works fine with an extra newline. So I think the real problem was that I used notepad.exe (on Windows), and it left dos-style newlines ("\r\n") instead of unix-style. Just a guess. I'll try to reproduce that next.

strip() ought to remove both \r and \n, right?

strip() ought to remove both \r and \n, right?
Author

I'm closing this as unreproducible.

I'm closing this as unreproducible.
zooko added the
invalid
label 2007-10-13 20:15:33 +00:00
zooko closed this issue 2007-10-13 20:15:33 +00:00
Author

For the record, I suspect that what really happened was that notepad.exe appended ".txt" to the file when it saved it, leaving "introducer.furl" empty.

For the record, I suspect that what really happened was that notepad.exe appended ".txt" to the file when it saved it, leaving "introducer.furl" empty.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#159
No description provided.