I have configured a Feeds Import for importing drupal nodes (through CVSParser).
Two different users (different browser or pc) use the same importer but they specifies different files.
The two users click on submit concurrently.
I have that only one file is imported.
In function "public function parse(FeedsImportBatch $batch, FeedsSource $source)" of "class FeedsCSVParser extends FeedsParser", I inserted code for print of the value dsm($batch->getFilePath()); and then I discovered that two different browsers show the same file even if the two users have uploaded different files.
why what happens?
two users can not simultaneously use the same importer at the same time?

Comments

twistor’s picture

Title: Problem in concurrent import » Concurrent import uses the same file.
Version: 6.x-1.0-beta13 » 6.x-1.x-dev
Component: Feeds Import » Code
Assigned: Unassigned » twistor
Priority: Critical » Normal
twistor’s picture

Status: Active » Postponed (maintainer needs more info)

What fetcher are you using?

twistor’s picture

Assigned: twistor » Unassigned
Status: Postponed (maintainer needs more info) » Closed (works as designed)

This is indeed a problem, but it's not really fixable in the current design. The problem is that a source can only have one batch at a time, as well as one file.

The way to work around this is to attach the importer to a content type and point each user at a different node.

mauriziogiglio’s picture

Many thanks