Hi, I'm seeing some weird behaviour from FCP, while testing out pyfcp.
It seems that on insert, FCP is truncating the paths of SSK URIs. For instance, I insert 'SSK at blahblah/dir1/dir2/index.html, but the node comes back with the URI 'SSK at blahblah/dir1' ! Is this a bug, or is it no longer possible to insert SSK at privatekey/dir1/dir2/file.ext in freenet 0.7? Here's an FCP session transcript, to demonstrate this: # first hello CLIENT: ClientHello CLIENT: ExpectedVersion=2.0 CLIENT: Name=id1147217983748174 CLIENT: EndMessage NODE: NodeHello NODE: FCPVersion=2.0 NODE: Version=Fred,0.7,1.0,672 NODE: Node=Fred NODE: Testnet=false NODE: CompressionCodecs=1 NODE: EndMessage # get an SSK keypair CLIENT: GenerateSSK CLIENT: Identifier=id1147217996860563 CLIENT: EndMessage NODE: SSKKeypair NODE: InsertURI=freenet:SSK at ElKh1EB3dRqGoCTTaKHtOuTD03tUKsJ-vezIJU0BEWc,MGvjLwmA5xSLekyOcHAr1hqCwpd~vvXSpXLSd4hGg5w/ NODE: RequestURI=freenet:SSK at wtfdMzMqFYSliGI56oiPv8ZYgQs~jgjB5E9IBrdbNFQ,MGvjLwmA5xSLekyOcHAr1hqCwpd~vvXSpXLSd4hGg5w,AQABAAE/ NODE: Identifier=id1147217996860563 NODE: EndMessage # insert one file under the pathname /mysite/foo/index.html # relative to the SSK private key CLIENT: ClientPut CLIENT: UploadFrom=disk CLIENT: Verbosity=0 CLIENT: URI=freenet:SSK at ElKh1EB3dRqGoCTTaKHtOuTD03tUKsJ-vezIJU0BEWc,MGvjLwmA5xSLekyOcHAr1hqCwpd~vvXSpXLSd4hGg5w/mysite/foo/index.html CLIENT: Filename=/home/david/freenet/testdir/index.html CLIENT: DontCompress=false CLIENT: Metadata.ContentType=text/html CLIENT: GetCHKOnly=false CLIENT: MaxRetries=3 CLIENT: Identifier=id1147218010996734 CLIENT: PriorityClass=1 CLIENT: EndMessage NODE: URIGenerated NODE: Identifier=id1147218010996734 NODE: URI=freenet:SSK at wtfdMzMqFYSliGI56oiPv8ZYgQs~jgjB5E9IBrdbNFQ,MGvjLwmA5xSLekyOcHAr1hqCwpd~vvXSpXLSd4hGg5w,AQABAAE/mysite NODE: EndMessage NODE: PutSuccessful NODE: Identifier=id1147218010996734 NODE: URI=freenet:SSK at wtfdMzMqFYSliGI56oiPv8ZYgQs~jgjB5E9IBrdbNFQ,MGvjLwmA5xSLekyOcHAr1hqCwpd~vvXSpXLSd4hGg5w,AQABAAE/mysite NODE: EndMessage # notice above that the node returns the URI # SSK at pubkey/ # not # SSK at pubkey/mysite/foo/index.html # now insert another file, as SSK at privkey/mysite/foo/page1.html CLIENT: ClientPut CLIENT: UploadFrom=disk CLIENT: Verbosity=0 CLIENT: URI=freenet:SSK at ElKh1EB3dRqGoCTTaKHtOuTD03tUKsJ-vezIJU0BEWc,MGvjLwmA5xSLekyOcHAr1hqCwpd~vvXSpXLSd4hGg5w/mysite/foo/page1.html CLIENT: Filename=/home/david/freenet/testdir/page1.html CLIENT: DontCompress=false CLIENT: Metadata.ContentType=text/html CLIENT: GetCHKOnly=false CLIENT: MaxRetries=3 CLIENT: Identifier=id1147218115391447 CLIENT: PriorityClass=1 CLIENT: EndMessage NODE: URIGenerated NODE: Identifier=id1147218115391447 NODE: URI=freenet:SSK at wtfdMzMqFYSliGI56oiPv8ZYgQs~jgjB5E9IBrdbNFQ,MGvjLwmA5xSLekyOcHAr1hqCwpd~vvXSpXLSd4hGg5w,AQABAAE/mysite NODE: EndMessage NODE: PutFailed NODE: Fatal=true NODE: Code=9 NODE: Identifier=id1147218115391447 NODE: ShortCodeDescription=Collided with existing data NODE: CodeDescription=Insert collided with different, pre-existing data at the same key NODE: EndMessage Cheers David
