Ticket #336 (closed task: fixed)

Opened 11 years ago

Last modified 11 years ago

Place file lock to prevent deleting of project files while that project is active

Reported by: chhavi-negi Owned by: avneesh-singh
Priority: critical Milestone: Obi 1.0
Component: Application Version:
Keywords: Cc:
Blocked By: Blocking:
Time planned: 1d Time remaining: 1d
Time spent: 1d Estimated Number of Hours:
Add Hours to Ticket: Billable?:
Total Hours:

Description (last modified by avneesh-singh) (diff)

Place file lock to prevent deleting of project files while that project is active.

Without the lock following problem arise. Open any Obi project.
Goto data folder of any obi project and delete one or two .wav files from it.
Now go back to the opened project and press space bar to play any project.
The phrase gets played but an exception thrown:
The data file C:\Documents and Settings\chhavi\My documents\my\Data\hfdhf4.wav file does not exist.(Thats where i store my projects)
The details are:
urakawa.exception.DataMissingException?: The data file C:\Documents and Settings\chhavi\My Documents\Untitled Obi Project\Data\tibky14p.wav does not exist

at urakawa.media.data.FileDataProvider?.checkDataFile() at urakawa.media.data.FileDataProvider?.getInputStream() at urakawa.media.data.audio.codec.WavAudioMediaData?.WavClip?.getAudioData(Time subClipBegin, Time subClipEnd) at urakawa.media.data.audio.codec.WavAudioMediaData?.getAudioData(Time clipBegin, Time clipEnd) at urakawa.media.data.audio.AudioMediaData?.getAudioData(Time clipBegin) at urakawa.media.data.audio.AudioMediaData?.getAudioData() at Obi.Audio.AudioPlayer?.PlayAssetStream?(Int64 lStartPosition, Int64 lEndPosition) at Obi.Audio.AudioPlayer?.InitPlay?(AudioMediaData? asset, Int64 lStartPosition, Int64 lEndPosition) at Obi.Audio.AudioPlayer?.Play(AudioMediaData? asset, Double timeFrom) at Obi.Playlist.PlayCurrentPhrase?() at Obi.Playlist.PlayPhrase?(Int32 index) at Obi.Playlist.Play() at Obi.ProjectView?.TransportBar?.PlayCurrentPlaylistFromSelection?() at Obi.ProjectView?.TransportBar?.PlayAll?() at Obi.ProjectView?.TransportBar?.PlayOrResume?(ObiNode? node) at Obi.ProjectView?.TransportBar?.PlayOrResume?() at Obi.ProjectView?.ProjectView?.TogglePlayPause?(Boolean useSelection) at Obi.ProjectView?.ProjectView?.<InitializeShortcutKeys?>b1a() at Obi.ProjectView?.ProjectView?.ProcessCmdKey?(Message& msg, Keys key) at System.Windows.Forms.Control.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.ContainerControl?.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.Control.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.Control.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.ContainerControl?.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.Control.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.Control.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.ContainerControl?.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.Control.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.Control.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.ContainerControl?.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.Control.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.Control.ProcessCmdKey?(Message& msg, Keys keyData) at System.Windows.Forms.Control.PreProcessMessage?(Message& msg) at System.Windows.Forms.Control.PreProcessControlMessageInternal?(Control target, Message& msg) at System.Windows.Forms.Application.ThreadContext?.PreTranslateMessage?(MSG& msg)

Change History

comment:1 Changed 11 years ago by avneesh-singh

  • Priority changed from blocker to critical
  • Type changed from defect to task
  • Description modified (diff)
  • Summary changed from Delete a file from the data folder of a project and play it. Result crash to Place file lock to prevent deleting of project files while that project is active

comment:1 Changed 11 years ago by avneesh-singh

  • Status changed from new to closed
  • Resolution set to fixed

Deleting of active project folder is not allowed. And more than one project session is not allowed to run in parallel.

But the files of project can still be deleted if someone do it after going into project folder. This do not look as major problem!

Note: See TracTickets for help on using tickets.