Bug 40100 - FileServer does not support closing write access files
Summary: FileServer does not support closing write access files
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.1.2
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-24 09:38 UTC by Guillaume Lasnier
Modified: 2007-01-21 16:04 UTC (History)
0 users



Attachments
Test access type before closing (1.50 KB, patch)
2006-07-24 09:40 UTC, Guillaume Lasnier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Lasnier 2006-07-24 09:38:10 UTC
If a file is accessed using the FileServer class to be written using the write()
method, the close will fail with a ClassCastException.
Comment 1 Guillaume Lasnier 2006-07-24 09:40:32 UTC
Created attachment 18633 [details]
Test access type before closing

Upon close, check if the fileEntry is a read or write handle (java.io.Reader or
java.io.Writer).
Comment 2 Sebb 2007-01-21 16:04:06 UTC
Thanks! Finally added the fix to SVN.
Comment 3 The ASF infrastructure team 2022-09-24 20:37:37 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1764