Related to https://github.com/web3-storage/freeway/issues/84. A case where the path can't be fully resolved, but we should be able to fetch all the blocks up to the point where the path fails. The path resolves to a file but requests further segments (probably a badly encoded page or a bad client). Freeway returns the root block but not the file block which is the only link down from the root.
Gives us the root plus file, which is what it should.
As I mentioned in https://github.com/web3-storage/freeway/issues/83, we're discussing what to do with unfulfilable paths like this over here but currently we think that the server should just return what it can and it's up to the client to verify that it can't fully fulfil the path. So for Lassie in daemon mode serving these via HTTP like Freeway (and probably Frisbii), we'll just return the blocks that we get and ignore the unfulfilled path segments. But when you run lassie fetch on the command line, we'll give you the CAR but also an error and non-zero exit code that your path is unfulfilled. Not sure about what the gateway wants to do with these but I assume it should error 404.
Regardless, we should get the maximum blocks we can for these paths.
Related to https://github.com/web3-storage/freeway/issues/84. A case where the path can't be fully resolved, but we should be able to fetch all the blocks up to the point where the path fails. The path resolves to a file but requests further segments (probably a badly encoded page or a bad client). Freeway returns the root block but not the file block which is the only link down from the root.
Gives us the single root
bafybeiaylvitie6r7n6nbmcvvihkn33ylk5yqcfk7vgjawptn7hlpmwkqa
Gives us the root plus file, which is what it should.
As I mentioned in https://github.com/web3-storage/freeway/issues/83, we're discussing what to do with unfulfilable paths like this over here but currently we think that the server should just return what it can and it's up to the client to verify that it can't fully fulfil the path. So for Lassie in daemon mode serving these via HTTP like Freeway (and probably Frisbii), we'll just return the blocks that we get and ignore the unfulfilled path segments. But when you run
lassie fetch
on the command line, we'll give you the CAR but also an error and non-zero exit code that your path is unfulfilled. Not sure about what the gateway wants to do with these but I assume it should error 404.Regardless, we should get the maximum blocks we can for these paths.