First reproduced bug: off by one - acli/ATutor GitHub Wiki

The first reproduced bug belonged to the off-by-one series of bugs, as noted in issues 19 and 20. However, the observations turned out to be different. It is not currently clear whether something has changed in the ATutor code base or whether the original observations were incorrectly recorded.

Table of Contents

Observations made when reproducing the bugs

  • When we got to the 11th post (i.e., the 10th comment) a link to page 2 appears, but there is no page 2
  • When we pressed the “2" link we got onto a blank page with no backlink to page 1

Observations made when reading the code

Observations related to the bug being reproduced

  • The affected source files were index.php and view.php
  • Grepping for “Page:” reveals that the source of the bug is likely html/forum.inc.php

Additional observations

  • Why are we truncating subjects to 28 characters? (or actually 25?)
  • Why are we generating inline styling?

To follow up

⚠️ **GitHub.com Fallback** ⚠️