Return-Path: william@bourbon.usc.edu Delivery-Date: Mon Nov 24 21:32:04 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id mAP5W4Rg007147 for ; Mon, 24 Nov 2008 21:32:04 -0800 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id mAP5Ua8B000824 for ; Mon, 24 Nov 2008 21:30:36 -0800 Message-Id: <200811250530.mAP5Ua8B000824@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: CS551: Final Project 2 : Query Date: Mon, 24 Nov 2008 21:30:36 -0800 From: Bill Cheng Someone wrote: > In the 1st test case we have : > at node 00: > > "store chess.jpg 1 categories="audio mp3" artist="Blondie" > > so we have to generate a file id and one time password for this file as node > 00 is initiating a store. , correct ? You don't need a FileID. You do need a one-time password. > search keywords="audio mp3 blondie" > should get a response, > then do > > get 1 > "chess.jpg" should be created in the current directory > > Then we have: > delete FileName=chess.jpg SHA1=f7917fe4976d2c24f225bc4b6c2334e554b91c28 > Nonce=8ae005585be9c44ef1910d25dd6f8da58c432ab5 > should prompt the user to see if it's okay to > use a random password, type "yes" > nothing should get deleted > type "status files 1 00.out", look at "00.out", > there should still be two files > > Why does it say that we should not delete the file? > is it because after a GET we have to store the new details of "chess.jpg" ? > And if so then do we need to update the FILE ID and ONE TIME PASSWORD when > we "GET" a file and if the same file exists at the node ? It's simply because the Nonce specified above does not match the Nonce of the file. -- Bill Cheng // bill.cheng@usc.edu