r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[RAMBO] The REBOL bug and enhancement database

BrianH
8-Feb-2007
[2683]
Sorry, you just said that.
Graham
8-Feb-2007
[2684x2]
took me a few days of puzzling what was going on.
of course ethereal turned out to be no help because I was tracing 
ssl.
BrianH
8-Feb-2007
[2686]
This seems like an easy fix to someone who has the time, the SDK 
source and the inclination.
Graham
8-Feb-2007
[2687x2]
Yep
most of us are missing all three
BrianH
8-Feb-2007
[2689]
I'm just missing the time (and the need).
Gabriele
8-Feb-2007
[2690x5]
wait! i know why that is happening.
the default for tcp:// is CRLF
BUT the default for ssl:// is LF! that is a bug i reported some time 
ago. (it created problems for https:// too)
you can workaround it by adding a  /with refinement to the open (it 
will not hurt tcp either)
http://www.rebol.net/cgi-bin/rambo.r?id=3532&
BrianH
8-Feb-2007
[2695]
Can such /with refinements be added to the default protocols built 
on SSL? It shouldn't hurt when the ssl:// default is eventually fixed.
Gabriele
8-Feb-2007
[2696x2]
it was added to http, it should to any other protocol that uses ssl.
but the bug should really be fixed! i have reported it in 2004 ;)
Graham
8-Feb-2007
[2698x2]
Good to know!
that history is repeating itself :(
BrianH
8-Feb-2007
[2700]
Perhaps you can use the /with refinement in your esmtps protocol, 
Graham.
Graham
8-Feb-2007
[2701]
Yeah ..
Gabriele
8-Feb-2007
[2702]
yes, i think it will work fine if you just open/with
Graham
8-Feb-2007
[2703]
Someone at RT should really go thru the old bugs and make sure that 
they are all fixed
Gabriele
8-Feb-2007
[2704x2]
that will eventually happen.
that's why they are in rambo - they won't be forgotten.
Maxim
8-Feb-2007
[2706]
is forgetting them better than not fixing them?  I wonder  ;-)
BrianH
8-Feb-2007
[2707]
I'm looking at the http protocol source, and I find no indication 
of any fix to the default line ending of ssl:// - do I have the right 
source? It is dated 5-Dec-2005...
Graham
8-Feb-2007
[2708]
same as mine
Gabriele
9-Feb-2007
[2709]
hmm, was that lost?
Ladislav
11-Feb-2007
[2710]
my understanding is, that the usage of the /ONLY refinement is an 
error in cases like:

    a-string: ""
    insert/only a-string "ab"


currently REBOL just ignores the refinement, what are your preferences?
Henrik
11-Feb-2007
[2711]
what should /only do for strings?
Ladislav
11-Feb-2007
[2712]
If you carefully read my post, then you may see that you asked the 
same question I did
Henrik
11-Feb-2007
[2713]
ok, sorry, I understood it as if you had the answer and wanted to 
hear others first. :-)
Ladislav
11-Feb-2007
[2714]
I just have my preferences, but don't know what the others prefer
Volker
11-Feb-2007
[2715]
It should put  a string in the position of one char :D
Its an programmer-error. Do we  need a runtime-check?
Ladislav
11-Feb-2007
[2716]
I guess, that it is simpler to silently ignore the refinement from 
the interpreter designer POV
Henrik
11-Feb-2007
[2717]
Ok, I guess, I'm completely misunderstanding the problem. Volker, 
what do you mean by putting a string in the position of one char?
Ladislav
11-Feb-2007
[2718]
that is what insert/only a-string "ab" requests for, althought it 
cannot be done
Henrik
11-Feb-2007
[2719]
ah, so it would replace the character at the position and then insert 
the string from there?
Volker
11-Feb-2007
[2720]
Henrik, look at how  it works with  blocks ;)
Ladislav
11-Feb-2007
[2721]
...and how it is described in its doc string
Henrik
11-Feb-2007
[2722]
I know how it works with blocks, but I can't see how this would work 
with strings? You can't make strings inside other strings, unless 
you mean {"string"} or "{string}". And it's AFAIK not possible to 
control when to use one or the other?
Volker
11-Feb-2007
[2723x2]
Thats why i added the ":D" ;) Yes, its impossible. But theprogrammer 
said "do so"
Maybe the wrong emoticon?
Henrik
11-Feb-2007
[2725]
Volker, I think I understood that, but I just fail to see the current 
behaviour with /only on strings as a problem, so I guess I have to 
vote for the current behaviour. :-)
Volker
11-Feb-2007
[2726x2]
Strictly iusing  it for strings is a bug. But not a problem.
And ignoring silly refinements  is done everywhere in natives.
Maxim
11-Feb-2007
[2728x2]
ladislav, many funcs are intended to support all of a given set of 
types (numbers, series, etc).


we must not turn rebol into a "strict" language... the "looseness" 
in the case where some effects are irrelevent are not really bugs.
as opposed to calculus which has a definite and single true output 
value.  REBOL should give an error in those cases, cause then, the 
process of calculus is an error (like out of bounds, etc)
Ladislav
11-Feb-2007
[2730]
{the "looseness" in the case where some effects are irrelevent are 
not really bugs} - yes, I understand this POV and respect it. that 
is why I am not enforcing my POV in this case and prefer to ask you
Maxim
11-Feb-2007
[2731]
I know its hard to put the line where loseness becomes a bug (like 
the few cases this kind of effect has been brought up before)
Ladislav
11-Feb-2007
[2732]
my idea was more in the sense: {insert/only "" "ab"} is a most likely 
a programmer error. therefore if the interpreter causes the error, 
it helps the programmer find the bug in his code. If the interpreter 
silently ignores the problem, then the programmer may be unable to 
find out there is probably something wrong