Closed
Bug 889754
Opened 13 years ago
Closed 8 years ago
[Bluetooth][File-Transfer] Improve error message while failed request to send a file
Categories
(Firefox OS Graveyard :: Gaia::Bluetooth, defect)
Tracking
(blocking-b2g:-)
RESOLVED
WONTFIX
| blocking-b2g | - |
People
(Reporter: iliu, Unassigned)
References
Details
STR:
When you send the file before the transfer is complete, the screen will appear black.
Steps:
0. A and B devices is D300
1. A and B pair
2. File transfer from A to B
3. File currently being transferred.
Select a photo.
4. B is selected.
5. Click on the OK button.
Expected:
It should have some error message for what the failed reason.
Actual:
Black screen appears. but the First file transfer has been completed.
So, When you send the file before the transfer is complete, the screen will appear black.
| Reporter | ||
Comment 1•13 years ago
|
||
According to previous discussion on bug 884253(https://bugzilla.mozilla.org/show_bug.cgi?id=884253#c20), we should improve the error message to explain why failed to send a file.
It depends on bug 884253. Bluetooth API Adapter.connect() will provide error code at onerror callback.
Comment 2•13 years ago
|
||
Hi Casey,
When users try to share a file via Bluetooth, several different types of error may occur (which means that onError event is fired after calling defaultAdapter.connect()), and Gecko Bluetooth would fire an event to Gaia with below error messages:
(1) "DeviceChannelRetrievalError"
Gecko Bluetooth couldn't find the requested service on the target device. This may happen especially on Mac/Ubuntu because these OSes require user to enable Bluetooth file-transfer service manually.
(2) "ReachedConnectionLimitError"
Currently we limit there can only be 1 file-transfer session at a time. Even if users choose more than one photo to share with another Bluetooth device, these transferring requests would be handled one by one, which means not parallelly. Therefore if another connection request is sent from Gaia when another one already exists, onError would be fired with this error message.
(3) "AlreadyConnectedError"
If Gaia try to call Connect() to connect with the same device which has been already connected, onError event would be fired with this error message. This is the scenario described in bug 884253.
(4) [Other general errors]
Using current error message should be fine.
For error (1) ~ (3), I would like to suggest that we should have different UI level error messages. Could you assist with defining this? Thanks in advance.
Flags: needinfo?(kyee)
Comment 3•13 years ago
|
||
Especially with the late-l10n here, this sounds like a great v1.2 bug and not a blocker for shipping 1.1
blocking-b2g: leo? → -
(In reply to Eric Chou [:ericchou] [:echou] from comment #2)
> Hi Casey,
>
> When users try to share a file via Bluetooth, several different types of
> error may occur (which means that onError event is fired after calling
> defaultAdapter.connect()), and Gecko Bluetooth would fire an event to Gaia
> with below error messages:
>
> (1) "DeviceChannelRetrievalError"
>
> Gecko Bluetooth couldn't find the requested service on the target device.
> This may happen especially on Mac/Ubuntu because these OSes require user to
> enable Bluetooth file-transfer service manually.
For this one I think we should stick with the generic failure screen since to solve the problem could require specific instruction depending on the other party sending/receiving the file.
>
> (2) "ReachedConnectionLimitError"
>
> Currently we limit there can only be 1 file-transfer session at a time. Even
> if users choose more than one photo to share with another Bluetooth device,
> these transferring requests would be handled one by one, which means not
> parallelly. Therefore if another connection request is sent from Gaia when
> another one already exists, onError would be fired with this error message.
Couldn't we in these scenarios just add it to the queue of files being transferred? If not then:
"Another Bluetooth transfer is already in progress."
>
> (3) "AlreadyConnectedError"
>
> If Gaia try to call Connect() to connect with the same device which has been
> already connected, onError event would be fired with this error message.
> This is the scenario described in bug 884253.
In what user scenario does this error occur? Presumably a transfer can happen when a device is properly paired and connected?
>
> (4) [Other general errors]
>
> Using current error message should be fine.
Flags: needinfo?(kyee) → needinfo?(echou)
Comment 5•13 years ago
|
||
Hi Casey,
> >
> > (1) "DeviceChannelRetrievalError"
> >
> > Gecko Bluetooth couldn't find the requested service on the target device.
> > This may happen especially on Mac/Ubuntu because these OSes require user to
> > enable Bluetooth file-transfer service manually.
>
> For this one I think we should stick with the generic failure screen since
> to solve the problem could require specific instruction depending on the
> other party sending/receiving the file.
>
ok.
>
> >
> > (2) "ReachedConnectionLimitError"
> >
> > Currently we limit there can only be 1 file-transfer session at a time. Even
> > if users choose more than one photo to share with another Bluetooth device,
> > these transferring requests would be handled one by one, which means not
> > parallelly. Therefore if another connection request is sent from Gaia when
> > another one already exists, onError would be fired with this error message.
>
> Couldn't we in these scenarios just add it to the queue of files being
> transferred? If not then:
>
> "Another Bluetooth transfer is already in progress."
>
For now, Gecko is not capable of queuing file-sharing requests which needs
to send file to different devices. Ian and I have been discussing how to
implement this feature. Before it's done, we'll use this to inform the user
about the failure.
> >
> > (3) "AlreadyConnectedError"
> >
> > If Gaia try to call Connect() to connect with the same device which has been
> > already connected, onError event would be fired with this error message.
> > This is the scenario described in bug 884253.
>
> In what user scenario does this error occur? Presumably a transfer can
> happen when a device is properly paired and connected?
>
The scenario is described in bug 876823: the user chooses a photo, sharing with device A, while a file transfer session with device A is still ongoing (maybe the previous file is large so that the user has plenty of time to start another session).
Flags: needinfo?(echou)
| Reporter | ||
Updated•11 years ago
|
Assignee: iliu → nobody
Comment 6•8 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•