Skip to content

Releases

OpenCloud Comic Reader 1.2.4

Choose a tag to compare

@github-actions github-actions released this 22 Nov 23:55

Release files for OpenCloud's app store, and new screenshots. The reader
itself is unchanged from 1.2.3.

Changed

  • Each release has a zip as well as a tarball, both named
    opencloud-comicreader-<version>.
    OpenCloud's app store downloads apps as
    .zip files, so a release now has opencloud-comicreader-<version>.zip and
    opencloud-comicreader-<version>.tar.gz, each with its SHA-256. Both hold
    the same comic-reader folder. Up to 1.2.3 there was one file,
    comic-reader-<version>.tar.gz. scripts/package.sh makes both, and the
    same build always gives the same bytes.
  • New screenshots, at 3:2 (the shape the app store uses), in OpenCloud's
    light and dark themes. The README shows the ones that match your GitHub
    theme.

Fixed

  • The repository held four compiled Python files (scripts/__pycache__/),
    left by the fixture scripts and committed by mistake, although the
    documentation says main has no compiled binaries. They are gone, and
    __pycache__/ is ignored.
  • Out-of-date statements in the documentation, among them: browser testing
    of 1.2.2 that was listed as not done; "CBZ works without WebAssembly", which
    is not so for a CBZ whose pages are in bzip2, LZMA or PPMd; installing
    described only as building, although releases have the app ready to install;
    verify:formats described as reading testfiles/formats/ without being told
    to; and 7-Zip's 7z reader missing where the decoders are listed.

OpenCloud Comic Reader 1.2.3

Choose a tag to compare

@github-actions github-actions released this 17 Nov 20:25

The project is now called OpenCloud Comic Reader. The reader itself is
unchanged from 1.2.2.

Changed

  • The name. The documentation, INSTALL.txt, the licence notices and the
    source comments say "OpenCloud Comic Reader". Inside OpenCloud, where the
    context is clear, the app is still listed as "Comic Reader", and its menu
    entry still reads "Open in Comic Reader".
  • The decoders load under a new cache key, because files in vendor/ changed
    (their notices and comments), so a browser fetches them once more after the
    update.

Fixed

  • Two 7-Zip licence texts in vendor/sevenzip/ were marked executable. The
    package now gives every file the same modes, whatever the source has, and so
    does the demo site's build.
  • docs/solid-rar.md in the source package still said password-protected RAR
    archives were not supported.

Not noted for 1.2.2

  • Its release was the first built by the repository's workflow. Each
    release since has the app ready to install, comic-reader-<version>.tar.gz,
    with its SHA-256, built from the tagged source; scripts/package.sh makes
    the package the same way, byte for byte, and scripts/release-notes.sh
    checks that the version agrees everywhere before a release.
  • Two tests that try hundreds of wrong passwords, which timed out on slower
    machines, got a time limit of their own then.

OpenCloud Comic Reader 1.2.2

Choose a tag to compare

@github-actions github-actions released this 17 Nov 19:12

Password-protected comics in every format, two fixes found by installing
1.2.1 over 1.2.0, and one older one.

Password-protected comics

The reader now opens password-protected comics: CBZ, CB7/C7Z and CBR.

Added

  • A password prompt. A protected comic opens to a password field in
    place of the pages. With the right password the comic opens as usual; with
    a wrong one the field comes back with a message. The archive is not
    downloaded again between attempts.
  • CBZ: ZipCrypto and AES. zip.js decrypts each page as it is read, so a
    large protected CBZ still streams by range request. The password is checked
    before anything is shown: against up to three entries' check values, and
    where those are too few to be sure, by decoding one entry.
  • CBZ in bzip2, LZMA or PPMd. These go to libarchive, as they do
    without a password. libarchive undoes the old zip encryption (ZipCrypto)
    itself. It cannot undo AES, so AES entries are decrypted first, each one's
    authentication code checked, and libarchive is given the zip without them
    encrypted.
  • CB7/C7Z, with file names readable or encrypted. libarchive recognises
    7z encryption and stops there, so these go to a third decoder: 7-Zip's own
    7z reader (7-Zip 26.06, LGPL-2.1-or-later), compiled to WebAssembly. It
    runs in its own worker, reads the archive in one pass under the same
    limits and time limits as the solid-RAR decoder, and reads the archive
    from the downloaded file a part at a time, so the archive is not held a
    second time in the decoder's memory.
  • CBR: RAR4 and RAR5, with file names readable or encrypted, solid or
    not.
    Neither RAR decoder decrypts. The archive is decrypted first, with
    7-Zip's decryption routines (in the same module as its 7z reader), and
    written out as the same archive without encryption; libarchive or unarr
    then reads it like any other. RAR5 records a check value, so a wrong
    password is refused at once. RAR4 records none, unless its headers are
    encrypted or an entry is stored: the pages are then read, and a password
    under which none of them decodes is reported wrong. The cipher RAR used
    before AES (RAR 2.x, 1996 to 2002) is decrypted too.
  • The password stays in the tab. It is not sent to the server, not saved
    by the reader and not kept with the reading position; it is asked for
    each time the comic is opened.

Changed

  • A 7z archive in which only some entries are encrypted is treated as
    encrypted: the reader asks for the password and does not show the part it
    could read without it.
  • The letters that are keyboard shortcuts (f, d, r, t, v), the
    arrow keys and Space are left alone while a text field has the focus,
    which until now the reader did not have.
  • The downloaded archive is let go once a page has been read without a
    password being asked for (or at once, for a RAR or 7z opened with its
    password), so that it does not sit in memory beside the decoded pages.

Not supported

  • RAR encryption from before RAR 2.0 (archives from before 1996; 7-Zip has
    no implementation of it), and archives split into volumes (the reader
    opens one file). Each is refused with a message that says so.
  • A protected CB7 or CBR, and an AES zip in bzip2, LZMA or PPMd, need
    Chrome 95, Firefox 114 or Safari 15.2 or later: the module that reads or
    decrypts them uses WebAssembly exception handling, in a module worker.

Limits

  • 7z and RAR4 have no way to check a password except by using it, so a
    wrong password and an archive damaged throughout cannot be told apart.
    Both get the wrong-password message, which says so. Damage in part is
    told apart, however much of it there is: as long as one block, entry or
    page still decodes, the password is known to be right and the rest show
    as unreadable pages, in every format. The price is that for 7z, and for
    a RAR4 that gives nothing to check a password by, a wrong guess takes a
    pass over the archive, as opening with the right password does.
  • A RAR4 with encrypted file names whose first encrypted header is damaged
    cannot be told from one opened with a wrong password: nothing after that
    header can be found without it.
  • RAR 2.x encryption takes the password as bytes in a DOS code page the
    archive does not name. The reader sends UTF-8: right for a password in
    ASCII, a guess for any other. Only stored entries have been tested (no
    current archiver writes this encryption; the test archive is written by
    scripts/rar_writer.py and checked against RARLAB's unrar).
  • A 7z built without checksums (7-Zip never writes one) gives the decoder
    nothing to check by. The pages that came out are then looked at, and
    unless at least half of them begin like images the password is reported
    wrong. A comic of that kind whose pages are mostly not images is
    therefore refused even with the right password.
  • A 7z password longer than 1,024 characters is answered as wrong without
    being tried.
  • Zip's own password check is short, so where too few entries accept the
    password to be sure, one is decoded at open and its checksum compared. A
    wrong password therefore does not get past the prompt, and one damaged
    entry among good ones does not keep the right one out. (A comic whose
    only page is damaged cannot be told from one opened with a wrong
    password.) Only when nothing can be checked or decoded at open (every
    entry over the size limit, say) is it left to the first page read, which
    then sends the reader back to the prompt.
  • A zip whose AES entries were decrypted for libarchive is read without
    comparing checksums where it has entries in the second version of zip's
    AES scheme: that version stores none, relying on the authentication
    code, which has been checked by then.
  • An AES entry of such a zip that does not decrypt while others do
    (damaged, or under a password of its own) shows as an unreadable page.
    The password is called wrong when no entry has decrypted and a thousand
    have refused it outright, or all of them in a smaller archive.
  • A RAR in which only some pages are encrypted, and which gives nothing to
    check a password by, is judged by the encrypted entries alone. That
    needs the decoder's list of files to match the archive's; where it does
    not (more files than the reader lists, or links among them), every entry
    is judged, and one that never was encrypted then lets any password in,
    to a comic whose encrypted pages cannot be read.
  • Decrypting a RAR, or the AES entries of a zip, writes the archive a
    second time (a Blob, which the browser may keep on disk). Both exist
    while the comic is being opened; the downloaded original is let go once
    it is.
  • A solid RAR4 that was decrypted relies on unarr having read the marker
    that ends each entry by the time the entry is complete. It has, except
    for an entry whose last byte falls exactly where one of the decoder's
    working windows ends; the entries after such a one fail their checksums.
  • A signed download link can expire while the prompt is up. The attempt then
    fails as a network error; "Try again" fetches a fresh link and asks for the
    password again.

Build

  • A third decoder to build: npm run build:native now also runs
    scripts/build-sevenzip.sh, which downloads the 7-Zip 26.06 source
    release, checks it against a recorded SHA-256, and compiles the 7z reader
    and the decryption routines in the same pinned Emscripten container,
    without network access. No 7-Zip source is kept in the repository and none
    is modified. The build is reproducible; its two outputs are in
    native/outputs.sha256 and under the same build-stamp check as the other
    decoders. The download-and-check step is now one function shared with the
    libarchive build (scripts/lib/fetch-sources.sh).
  • Only 7-Zip's extract-only 7z library and its decryption code for RAR and
    zip AES are compiled: no RAR decompression code (which is what carries
    7-Zip's unRAR licence restriction), no compressors.
  • The other two decoders change with it, so all three are rebuilt.
    unarr's glue (native/unarr/glue.c, this app's own) gains a function for
    solid archives that were decrypted; unarr's sources are untouched. The
    libarchive.js C wrapper gains a sixth marked change: an option, passed
    through the locale, not to compare zip checksums, for a zip the app has
    decrypted; and a seventh, below.
  • prune-dist requires the new files in a release build and checks them for
    static imports, like the unarr ones.
  • npm run check:types now checks the props templates give to OpenCloud's
    own components (oc-button and the rest), using the design system's type
    declarations, for which it is now a direct dev dependency. A wrong value
    used to pass unnoticed.
  • The Node image in the README's build commands is named by digest.

Notices

  • THIRD-PARTY-NOTICES.txt now has a section for the Emscripten runtime
    that is linked into all three WebAssembly modules (Emscripten itself,
    musl, the LLVM runtime libraries, dlmalloc), with the licence texts in
    licences/. It was missing for the two existing modules as well.

Tests

  • 526 unit tests. New: the real 7-Zip module over
    password-protected 7z fixtures (right, wrong and missing password, limits,
    a partly encrypted archive, archives without checksums); the real
    decryption of eight password-protected RAR fixtures, read back with the
    real unarr module, and of AES zips, read back with zip.js; real AES and
    ZipCrypto zips through openComic; which decoder each protected format
    is sent to; the composable's unlock path; the prompt component; and the
    prompt end to end, with OpenCloud's real button component inside it,
    typed into and clicked, opening real zips through the real composable and
    real protected 7z and RAR archives through the real worker scripts and
    modules (in Node worker threads); App.vue's wiring of the prompt, the
    keyboard and the focus; and the liba...
Read more