Open
Description
Environment:
Version: 1.1.0.201508030815
Java: 1.7.0_51
Windows 10
Eclipse Mars
Steps:
- Authenticate with 印象笔记.
- Configure clip configuration, check notebook, note, tag and comment, set existing notebook, leave the note field empty, set existing tag, add comment value.
- Go to 印象笔记, cancel the authentication.
- In Eclipse, do clip, an dialog window pops to ask to re-authentication.
- Click "not now".
Observed Behavior:
- After click "not now", then a Quick Organize windows pops with Note fields.
- Input a note name and click OK.
- Re-authentication window prompted again, click "Not Now", EDAMUserException throws:
EDAMUserException(errorCode:AUTH_EXPIRED, parameter:authenticationToken)
at com.evernote.edam.notestore.NoteStore$createNote_result.read(NoteStore.java:16793)
at com.evernote.edam.notestore.NoteStore$Client.recv_createNote(NoteStore.java:1766)
at com.evernote.edam.notestore.NoteStore$Client.createNote(NoteStore.java:1740)
at com.evernote.clients.NoteStoreClient.createNote(NoteStoreClient.java:449)
at com.prairie.eemory.client.impl.NoteOpsTextImpl.create(NoteOpsTextImpl.java:66)
at com.prairie.eemory.client.impl.NoteOpsTextImpl.updateOrCreate(NoteOpsTextImpl.java:41)
at com.prairie.eemory.client.impl.EeClipperImpl.clipSelection(EeClipperImpl.java:79)
at com.prairie.eemory.handlers.EeHandler$3.run(EeHandler.java:226)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Expected Results:
- No need to check the clip configuration if re-authentication is cancelled.
- Should tell user that the exact error message instead of throwing an exception.