AirDrop transfer fails due to broken pipe with certain Japanese file names

I am attempting to AirDrop files from an iPad app (14.5.1) to a Mac (11.4) and finding that it fails with certain Japanese file names. This also fails from the Files app so I think there might be an issue ourside our app.

Specifically, files with the name ア will transfer but those named アザ will not (both cases with our app's extension appended).

The files are in the same directory on the iPad and both can be opened prior to the attempt to AirDrop (via UIDocumentInteractionController). In fact, looking at Console it seems that all bytes of the file are transferred before the failure occurs.

In the case which fails I get the following on iOS:

MetricEvent 'com.apple.sharing.AirDrop.TransferResult' : { "sender" : 1, "legacy" : false, "errorCode" : 32, "success" : false, "modelCode" : "MacBook Pro", "errorDomain" : "NSPOSIXErrorDomain", "bundleID" : "com.our.app", }

and the following on the Mac:

MetricEvent 'com.apple.sharing.AirDrop.TransferResult' : { "sender" : 0, "legacy" : false, "errorCode" : 2, "success" : false, "modelCode" : "iPad", "errorDomain" : "NSPOSIXErrorDomain", "bundleID" : "", }

I see that previous bugs have existed in this area, e.g. http://openradar.appspot.com/radar?id=5013470848221184 (an issue with symlinks in this case rather).

Is this an iOS or macOS bug? Any ideas?

This also fails from the Files app so I think there might be an issue ourside our app.

If you can reproduce it with the Files app then none of your code is involved, right? If so, that’s definitely an OS bug and you should file it as such. Please post your bug number, just for the record.

Make sure to include two sysdiagnose logs, one from the sending device and one from the receiving, taken shortly after reproducing the problem.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks for the response!

I've now submitted this via Feedback Assistant: https://feedbackassistant.apple.com/feedback/9493442

AirDrop transfer fails due to broken pipe with certain Japanese file names
 
 
Q