kader990 / android-rcs-ims-stack

Automatically exported from code.google.com/p/android-rcs-ims-stack
0 stars 0 forks source link

Wrong error message received after canceling FT #162

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Preconditions: 
UserA and UserB are using RCS sim card 
Both Users are linked as Joyn contacts
UserB has enabled FT autoaccept

Scenario:
UserA sends file to userB
UserB autoaccepts FT
FT starts 
UserA taps on x (Cancel)

Actual result:
FT status message becomes "You have cancelled the FT" for a few seconds and 
then it is replaced with "FT failed. Please try again"
Intended result:
FT status message becomes "You have cancelled the FT" and not change to Failed.
I've investigated the reason behind this behavior and it seems to be a stack 
issue.
After UserA cancels the FT,the following method is called (..which is correct!):
@Override public void handleSessionAborted(int reason) throws RemoteException
and then the following (which shouldn't be called at all):
@Override public void handleTransferError(int errorCode) throws RemoteException
First method call assigns the correct message to the FT event but the second 
one wrongly overrides it. Assigning to the stack team.

Original issue reported on code.google.com by benoit.j...@gmail.com on 10 Oct 2013 at 7:56