Repository navigation
v0.8.1
A fix for being signed out of every device at once, for no apparent reason; a roomier note editor on
Android; and Markdown that reads the same on the phone as on the web. The sign-out fix is
server-side, so updating the server is what applies it.
Fixed
-
Signed out everywhere, with nothing to explain it. Presenting a refresh token that had
already been rotated was read as a stolen cookie in every case -- and the answer to a stolen
cookie is to end every session the account has. Two entirely ordinary situations reached it. A
client that never received a rotation response still holds the previous token and presents it
again: a dropped connection, or the app killed at the wrong moment, is enough. And a client
retrying a queued request after the user signed out does the same. Either one ended every session
on every device, minutes or hours later.The tokens say which happened. A replacement that has never been used is in nobody's hands, and
signing out leaves no replacement at all. Only a replacement already in circulation means someone
else is holding a copy, and that case still ends every session, exactly as before. A client whose
lost response was made good is held to the token it was given instead, so a copy of its old token
is still caught once that one is in use, rather than working until it expires. -
The Android app now writes a rotated refresh cookie durably instead of leaving it to an
asynchronous write, closing the window where the app being killed just after a refresh left the
superseded token on disk for the next launch to present. -
Android backups no longer carry the app's sign-in. Android backed up the whole app, refresh
cookie included, so restoring a backup or moving to a new phone brought a copy of it along. If
the old phone had refreshed since the backup was taken, that copy looked exactly like a stolen
cookie and ended every session on the account -- the same symptom as above, by another route. If
it had not, the backup held a working sign-in. The cookie and the server address now stay out of
backups and transfers: on a new phone you sign in again, and the notes and any changes not yet
uploaded carry on under the same account. Downloaded images stay behind too. They download
again, and on their own they could take the app past Android's 25 MB cloud-backup allowance,
which skips the backup entirely. -
Android said "Offline" while the phone was online. Anything that stopped a sync read the
same: a server name the phone's DNS would not resolve (or the app being blocked from the
network, which Android reports the same way), a certificate the phone does not trust, a server
answering 500, the sign-in failing to renew. Only the first is the phone's problem, and nothing
said which it was. The status line now names it -- "Can't find keepit.example.com on this
network", "Server error (HTTP 500)" -- and "Offline" means a phone with no network at all. The
reason is logged too, foradb logcat. -
Signing out on Android warns about changes that haven't synced. Sign-out tries once more to
send them, then clears the phone's copy whether or not that worked -- so signing out to get past
a sync problem threw away every edit, photo and voice note still waiting. It now asks first,
saying how many changes are waiting. -
The status bar icons on Android stay light on a phone set to light mode, where the clock and
battery were drawn dark on the app's dark background. -
Tapping a
file://link in a note crashed the Android app, and a note shared with you could
hold one. Only web, mail and phone links open now; anything else shows as its text. On the web,
a link that pointed nowhere -- the formatting toolbar'surlplaceholder -- opened keepIT itself
in a new tab; it is plain text now too.
Android editor
- The tools float above the navigation bar. They sat directly on the gesture bar -- or under
the buttons of 3-button navigation -- because the app draws edge to edge and they only ever made
room for the keyboard. They are now a rounded toolbar clear of both, with larger buttons. - One row instead of two: add, formatting, colour, checklist and microphone. "Aa" swaps in the
formatting buttons instead of stacking a second row; there are more of them than fit, so they
scroll, and fade at the edge where more are hidden. - Add and colour open sheets: labelled choices for a photo, images or a voice note, and large
named swatches that recolour the note while the sheet is still open, so trying a few is a tap
each. - Reminder and share moved to the top bar, beside pin, and trash into the menu there -- it used
to sit one slip away from the camera. - Markdown is styled as you type: bold reads bold, headings are larger, links are coloured, and
the syntax itself is dimmed. It is still the plain text underneath, so nothing moves under the
cursor.
Markdown
- Notes read the same on the phone as on the web. The Android app parsed Markdown with a
hand-rolled subset that disagreed with the web in small ways nobody could predict:2 * 3 * 4
came out in italics, a# commentinside a code block became a heading,_emphasis_and bare
URLs stayed raw, and a link was cut at its first). It now uses commonmark-java, the same
CommonMark and GitHub dialect the web renders. The widget and reminder previews come from the
same parse, so they no longer drop every asterisk in the text. - Enter continues a list, in the web and Android editors alike: after
- milkthe next line
starts-, after3.it starts4., and a new task starts unticked. Enter on an empty item
ends the list. - Formatting toolbar fixes, on both clients. Italic on a bold word turned it into italic instead
of bold italic. The list and heading buttons selected the whole line, so the next keystroke
replaced it; the cursor now stays put. Switching bullets to numbers stacked the markers (1. - a)
instead of replacing them, and numbering counted blank lines. Styling a selection that ended in a
space, or ran over several lines, gave Markdown that did not render. - Images in a note show as their description, linked to the image, on the web. The security
policy only loads images from keepIT itself, so one from anywhere else was a broken-image icon.
Also
- Ending every session for an account is now logged: a warning naming the account, how old the
replayed token was, and how many sessions it ended. It wrote nothing at all before, which is why
it could not be explained afterwards. The two ordinary cases above log at information level, so a
client that keeps losing rotation responses reads as a pattern rather than a one-off.
Docker: docker pull richy1989/keepit:0.8.1
The Android APK is attached below: download and install it directly (sideload).
Full Changelog: v0.8.0...v0.8.1