I have just hit this really wacked out bug, which is causing me a very major headache. I am hoping it is something stupid that I did...
Have Model > ManageClips. It has a deleteClip method. ManageClips forwards to ListClips, as business rule is, after any kind of Management call, relist current ClipSet. Have Model > ListClips. It lists clips by set. Have KeelModel > ListUploadedFiles (name is left over from the fileupload-struts days). Can take a FileFilter as a parameter.
Scenario; Somebody wants to delete a clip, which involves deleting the DB entry, as well as the file(s) from the local disk.
What is supposed to happen, 1) ManageClips is called with a DeleteCommand. 2) ManageClips starts a transaction and Deletes Record. 3) ManageClips calls app-fileservices ListUploadedFiles with a filter, and gets the files that match the filter. 4) ManageClips calls the app-fileservices FileManageModel with a Delete request, and the file to delete 5) FileManageModel deletes the file. 6) 4 & 5 are repeated for all files from 3. 7) ManageClips forwards to ListClips, which lists the currently available entries for futhur action by user.
What is actually happening; 1) ManageClips is called with a Delete Command 2) ListClips is started (from point unknown) -- Definately NOT from 3) ListClips calls ListUploadedFiles 4) ManageClips calls ListUploaded files with Filter.
At this point, the logs get confusing, but this much I do know from the logs, FileFilter selects/rejects as designed. ManageClips gets a list of all files ListClips gets a list of all files ManageClips deletes all files in directory, but only entry for desired clip. ListClips is executed two more times.
Help? Where should I look for what is causing this? The only place ListClips is getting called is outside of any loops (that I know of).
Regards, Steve
-- Java/J2EE Developer/Integrator Co-Chair, Dallas/FortWorth J2EE Sig 214-724-7741
http://keelframework.org/documentation Keelgroup mailing list [EMAIL PROTECTED] http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
