#734 closed defect (fixed)
Temp file rename does not work properly
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | lowest | Milestone: | |
Component: | nALFS - Back End (XML Handlers) | Version: | 1.2.0 |
Severity: | blocker | Keywords: | |
Cc: |
Description
The rename() in get_url can not work when nALFS is launched on a different filesystem than the one where the file should be downloaded. The temp_file_name seems to be created in the current directory, which is not my "destination" directory, and they are on different filesystems. Hence, the rename fails. I've patched the get_url utility for it to add the destination path, but perhaps it is not optimal. The URL is the location of my patch. If it doesn't break some nALFS rule, it would be good to have an official patch. Thanks
Attachments (1)
Change History (5)
by , 21 years ago
Attachment: | nALFS-1.2.0.patch added |
---|
comment:1 by , 21 years ago
bug_file_loc: | ftp://localhost/pub/nALFS-1.2.0.patch |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Analysis is correct; this bug was introduced when my initial code was changed to use create_temp_file. I have corrected this bug in the CVS version, using a simpler technique than the posted patch. If you're willing, please give it a test run and ensure it works for you. Thanks!
comment:3 by , 21 years ago
Keywords: | VERIFIED added |
---|
comment:4 by , 21 years ago
Keywords: | VERIFIED removed |
---|
my overall patch for nALFS-1.2.0