Issues
- cffile write nameconflict skipLDEV-1609Resolved issue: LDEV-1609Michael Offner
- Lucee fails to start on instance rebootLDEV-1531
- Formfield params not transmitted when using multipart/form-data Content-Type header with CFHTTPLDEV-1454Resolved issue: LDEV-1454Igal Sapir
- Can't Update Lucee from Admin when using JEE sessionsLDEV-1450Resolved issue: LDEV-1450Pothys - MitrahSoft
- datasource connections not reliably returned to connection poolLDEV-1447Michael Offner
- serializejson(QUERY, 'struct') - Can't cast String [struct] to a booleanLDEV-1446Resolved issue: LDEV-1446Pothys - MitrahSoft
- connectionLimit is not set to default (-1) via AdminAPI <CFADMIN>LDEV-1445Resolved issue: LDEV-1445Pothys - MitrahSoft
- Scope.log Errors NonstopLDEV-1443Resolved issue: LDEV-1443
- Resources may not be accessed if they are not currently startedLDEV-1418Resolved issue: LDEV-1418
- ListContains(NoCase) misses last valueLDEV-1412Resolved issue: LDEV-1412Pothys - MitrahSoft
- CFDUMP Query listing issueLDEV-1400Resolved issue: LDEV-1400Pothys - MitrahSoft
- isInstanceOf Performance DegradationLDEV-1399Resolved issue: LDEV-1399Michael Offner
- File downloads >= 1GB using cfcontent fail with arithmetic error in IIS10LDEV-1398Michael Offner
- Setting client storage to database does not work and fills scope.log with errorsLDEV-1397Resolved issue: LDEV-1397Pothys - MitrahSoft
- getThreadGroup not returning ThreadGroup when cfhttp has been executedLDEV-1392Resolved issue: LDEV-1392Michael Offner
- Can't build Lucee due to typo in Administrator.cfcLDEV-1387Resolved issue: LDEV-1387Michael Offner
- java.lang.NullPointerException error on cfpdf action="addwatermark"LDEV-1385Resolved issue: LDEV-1385Michael Offner
- mail-server konfigurationLDEV-1383Resolved issue: LDEV-1383Michael Offner
- there is no cache defined with name ['+name+'] errors logged on each requestLDEV-1376Resolved issue: LDEV-1376Michael Offner
- ORM Log SQL not workingLDEV-1371Resolved issue: LDEV-1371Michael Offner
- ORM Data update not saved in the db -> Lucee Admin IssueLDEV-1370Resolved issue: LDEV-1370Michael Offner
- Lucee web admin resize feature returning 500 on ajax requestsLDEV-1364Resolved issue: LDEV-1364Michael Offner
- ORMClear Session is closing session with could not initialize proxy - no SessionLDEV-1363Resolved issue: LDEV-1363Pothys - MitrahSoft
- CSS and Image Resources Do Not Show in Lucee AdminLDEV-1362Resolved issue: LDEV-1362Pothys - MitrahSoft
- lucee.runtime.exp.NativeException: Index: 0, Size: 0 when saving ORM entitiesLDEV-1361Resolved issue: LDEV-1361Michael Offner
- Sessions expire prematurelyLDEV-1346Resolved issue: LDEV-1346Pothys - MitrahSoft
- The CacheManager has been shut down. It can no longer be used.LDEV-1332Resolved issue: LDEV-1332Michael Offner
- cachedwithin with an timespan of zero no longer clears cacheLDEV-907Resolved issue: LDEV-907Igal Sapir
- Upgrade JavaMail v1.4.7 and add Mail option to use NOOP or RSETLDEV-357
cffile write nameconflict skip
Description
Environment
Linux
relates to
Details
Assignee
Michael OffnerMichael OffnerReporter
Pat MoodyPat MoodyPriority
MajorFix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Details
Details
Assignee
Reporter
Priority
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Activity
Michael Offner5 September 2018 at 06:48
Pat Moody8 December 2017 at 00:55
Overwriting when set to skip or error does not sound correct to me. Same rules should apply to writing a file - whatever the action is. On a clustered server environment a file might be updated from one server whilst doing a check for existence from another. Should the existence return negative and by the time we do a subsequent write on the second server the file may already be there, so we need to skip.
Pothys - MitrahSoft7 December 2017 at 11:00
I've analyzed this ticket & added test case for this ticket. In cffile tag action="write", nameconflict="skip" & nameconflict="error", overwrites the file content same as ACF does. In lucee action="upload" nameConflict working as expected. I think NameConflict work's only for file action = upload, But I'm not sure about that will confirm this issue.
Pull Request: https://github.com/lucee/Lucee/pull/347
When nameconflict is set to skip it is still overwriting. However, on our production systems we have errors in the log that are being raised that indicate that the file already exists - production is on 5.2.1.9
The behaviour of overwriting is occurring on 5.2.4.37
<cffile action="write" output="Check123" file="#expandPath('./')#doiexist.txt" charset="utf-8" nameconflict="skip">
<cfoutput>
#expandPath("./")#doiexist.txt<br>
</cfoutput>