| Age | Commit message (Collapse) | Author | Lines |
|
Under --valgrind both tests failed with an exit status of 1 and no page,
because Valgrind gave up as it started when the write of its gdbserver
file was refused, so cgit never ran.
|
|
A module-link template takes the path as the tree names it, so a path
holding a space or a byte past ASCII gave an href that broke there. The
url is now encoded the way a clone url is.
|
|
The plain, snapshot and blob pages sent a name such as café.txt raw in
filename, which a client may read as ISO-8859-1. RFC 6266 has such a
name sent again as filename*, percent-encoded in UTF-8, for a client
that knows the form, with filename first for one that does not. The
extended form carries UTF-8 alone, so a name that is not valid UTF-8
keeps the plain filename by itself.
|
|
An href carried git://example.org/dépôt.git as it was, and the space
of "with space" too, neither of which a url may hold. html_url_path
would also encode the plus of git+ssh, which breaks the scheme, and the
percent of an escape the url was written with, so a whole url gets a
helper that encodes only the bytes RFC 3986 allows nowhere.
|
|
The shared repository "with space" listed git://example.org/with and
space.git as two clone urls, and the head linked the first alone. The
manual calls clone-url a list of templates, so the list is now split
before each template is expanded. A clone-prefix was right already, as
the url is joined to it after the split.
|
|
The query parser takes an offset as low as -1, which the stats page
reads as every author, so the index clamps it for itself, as the log
and refs pages already do.
|
|
The test reads the index and the site about page, both drawn by
ui-repolist.c. Its site had no repositories, so the index it read was
the error page, and a readme printed below the list went unseen. The
shared repositories give it a real index.
|
|
|
|
|
|
Three tests exercised the single path check in about_fn, each through
one kind of readme, and none through a readme read from the head being
browsed.
|
|
The child that rebuilds an expired list drops the request's stdin,
stdout and stderr, and nothing showed it, so a child that kept them
would hold the visitor's connection open for the whole scan.
|
|
hold-lock has to start cgit inside its hold, so it could not use
cgit_rc, and a cgit that blocked on the held lock stalled the run for
good instead of failing. The strace helper cannot use cgit_rc either,
and now says so.
|
|
The copy of the client's stdout kept during a fill is marked
close-on-exec, but nothing checked it, so a filter left holding the
connection after the request ended passed.
|
|
The test named the lock file through a variable set for cgit alone,
which kept it from going through cgit_rc, as a variable set ahead of a
shell function call does not portably reach the commands it runs. The
slot names fixed at 00000000 were never explained either.
|
|
No test set either value, so a size check that took 0 as a limit of no
bytes, or a parser that ignored such a value, passed. Under the 64 MB
default an ignored value still keeps the big page, so each one follows a
limit the page is past.
|
|
cache-about-ttl and cache-snapshot-ttl were never set, cache-index-ttl
only by the way and cache-summary-ttl only elsewhere at 0, so a page
that took the wrong ttl, or a setting that was never read, passed.
|
|
The test looked only for the error and a single status line, so a page
that stopped at the error passed. The empty cache-root proved nothing
either without a page that brokenrc does cache.
|
|
The over-long key was 6000 bytes and the ordinary one about 30, so the
limit could move by kilobytes either way and pass, and the warning went
to /dev/null.
|
|
About ten tests use bigkeyrc and one more uses slotsizerc, and each was
written inside an earlier test, so a --run that left that test out
failed the ones after it.
|
|
It read the config the 404 test had written, so it could not run alone
with --run.
|
|
An empty cache passed just as well when nothing was cached at all.
|
|
A first request that left no list behind made the second scan again,
and the test passed just the same.
|
|
|
|
|
|
The test there fails once the child keeps cgit's ignored SIGPIPE, so a
second one here would add nothing.
|
|
|
|
A script that failed to load and was carried on with would still fail
at filter_open, so the two load tests also check the reason Lua gave.
|
|
|
|
|
|
The test found the text anywhere on the page, so output that slipped
behind the closing tag, as print once did, still passed.
|
|
Five tests read or rewrote a config an earlier test had written, so
none of them could run alone with --run.
|
|
A check read the tmp an earlier test had left, so run alone or after a
failed fetch it read a stale page. Each test now asks for its own page
through cgit_ok_url, which renders it past the shared cache and fails
on a logged error or a page cut short.
|
|
Their titles promised behaviour only a browser shows, while each reads
the stylesheet, the script or the tag that loads it.
|
|
The test found the rule by its first selector and knew pre only by the
comma after it, so reordering the list failed it while losing kbd or
samp did not.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The sample's example passed only because its path holds a slash, which
the pattern for plain keys leaves out. A path without one was read as a
key of its own and reported as undocumented, and a mimetype extension
holding a character outside the pattern would have been dropped.
|
|
|
|
|
|
|
|
Both open with the same sentence, so a grep for it passed on either.
|
|
The small file test also read the page the test before it left, so it
renders the commit itself now.
|
|
One branch and one tag stood for the whole listing, so a count of 0
that dropped the rest still passed, and -1 is only compared with it.
|
|
The test read the page the test before it left and looked for the bare
path, which other links on the page also hold.
|
|
|
|
The status check now also fails on a second status line, which a page
that dies after its headers puts out, so every request is held to one
answer rather than the few that counted.
|