When apps shared files to each other via intents,
some magic happens where temporary credentials are somehow attached via the intent object.
OS reads a resource URI from the incoming intent, but does not resolve it until it tries to upload the file.
In the retry scenario these tmp creds have probably expired / evaporated / something.
The fix is probably to copy the file to OS's cache when creating the outbox entry (i.e. when the "Post" button is clicked) and then reference that from the outbox item instead.
When apps shared files to each other via intents, some magic happens where temporary credentials are somehow attached via the intent object. OS reads a resource URI from the incoming intent, but does not resolve it until it tries to upload the file. In the retry scenario these tmp creds have probably expired / evaporated / something. The fix is probably to copy the file to OS's cache when creating the outbox entry (i.e. when the "Post" button is clicked) and then reference that from the outbox item instead.