In the previous PR it was fixed for all formats managed by OGR, but SHP format was overwriting some part of the code (including the part in which the file name is generated). Since we need a uniq file name (just in case the same request is performed concurrently), it was raising an error saying the file already exists.
Resources
Context
Changes