These are chat archives for csarven/ldn

4th
Jul 2016
Amy Guy
@rhiaro
Jul 04 2016 00:51
For some reason I thought the order does matter, head should be done first. We shouldn't be encouraging parsing the full body if not necessary, bad practice and also an attack vector we need to mention in security section. Also sender MUST be able to do both! (Only stop if inbox found, not only try one then stop). I feel like order matters so the publisher knows what's going to happen reliably.
Sarven Capadisli
@csarven
Jul 04 2016 01:46
Well.. it is not 'bad practice' especially when the HEAD can only give you an inbox of the doc. We agreed that they are both useful. I can go along with HEAD being first, but then I'd like an explicit mention of an exclusive either of the approaches: if HEAD/Link has inbox, stop. otherwise, GET the body and find the inbox. Don't put inbox in HEAD/LInk and in GET. Pick one.
Amy Guy
@rhiaro
Jul 04 2016 19:36
I agree.
I thought that was obvious, but if it's not, then add it in
wait what you said is slightly confusing. "if HEAD/Link has inbox, stop." otherwise, GET the body and find the inbox." == instructions for sender. "Don't put inbox in HEAD/LInk and in GET. " == instructions for receiver
I don't think it matters whether or not the receiver puts it in both (maybe they use it for something else in body) but the sender/consumer must stop after head if they find it there
That should be clear for the receiver that if they put it in both, the head is what counts
Sarven Capadisli
@csarven
Jul 04 2016 20:09
Sure, but it is possible to look at the body only for the consumer. if dokieli loads an article (its body is available to js) it can look to see if there is an inbox in the body right away.. it doesn't have to do a HEAD. If it doesn't find it, it can look at HEAD if it wants.
Unless you really want to force that no matter what, do a HEAD first.
Amy Guy
@rhiaro
Jul 04 2016 20:23
I guess, I forget javascript.
I feel like mostly messages are going to be sent to resources that aren't the current one loaded, but what do I know
Maybe order doesn't matter
but it's not like head is expensive
I suppose try one then MUST try the other if not found is fine, in either order
Sarven Capadisli
@csarven
Jul 04 2016 20:40
I think it should be at the discretion of the discoverer, no? They can have good reasons to try either or both.
Amy Guy
@rhiaro
Jul 04 2016 23:19
Yeah you're probably right