aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | Improved test isolationRobin Houston2012-01-20-0/+4
| | |/ | |/| | | | | | | | | | The test “AdminRequestController when administering requests shows a public body” would fail when this spec is run on its own twice in succession.
* | | Improve accessibility for base design (increase base font size, make font ↵Seb Bacon2012-01-24-40/+27
| | | | | | | | | | | | sizes relative, improve contrast of text). Fixes #348
* | | Return a 404 for missing user profile pictures. Fixes #363Seb Bacon2012-01-24-1/+9
| | |
* | | Ensure short cache keys for interlock. Fixes #362Seb Bacon2012-01-24-2/+8
| | |
* | | Bug: we are causing a 500 when trying to raise 404 because the arguments to ↵Seb Bacon2012-01-24-1/+11
|/ / | | | | | | the exception constructor are wrong.
* / Don't allow users to page beyond a certain number of results (because in ↵Seb Bacon2012-01-20-7/+22
|/ | | | large databases, the sorting of such large batches causes an extreme slowdown).
* Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtkRobin Houston2012-01-19-4/+4
|\
| * Merge branch 'wdtk' of https://github.com/sebbacon/alaveteli into wdtkRobin Houston2012-01-19-2/+2
| |\
| | * Share a lock file between processes that modify the xapian database. Avoids ↵Seb Bacon2012-01-19-2/+2
| | | | | | | | | | | | a race condition and fixes #304
| * | Don't obscure user searches on request listing page behind cache. Fixes #256Robin Houston2012-01-19-2/+2
| |/
* / Record URL and PID *before* a request is processedRobin Houston2012-01-19-0/+1
|/ | | | | | | (If DEBUG_RECORD_MEMORY is enabled) This is useful for tracking down bugs that cause Rails to go into an infinite or very long loop, as the recent Xapian wildcard bug does.
* Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtkSeb Bacon2012-01-19-1/+10
|\
| * Do not require Xapian 1.2.7Robin Houston2012-01-19-1/+10
| | | | | | | | Work (with subtly reduced resilience) on earlier versions.
* | Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtkSeb Bacon2012-01-19-40/+116
|\|
| * Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtkRobin Houston2012-01-19-22/+83
| |\
| | * Merge branch 'release/0.5' into wdtkRobin Houston2012-01-19-17/+64
| | |\ | | | | | | | | | | | | | | | | Conflicts: app/views/public_body/_search_ahead.rhtml
| | | * Return a 404 for broken attachment urls. Fixes #351.Seb Bacon2012-01-18-1/+12
| | | |
| | | * Don't raise an error if the user deletes a track through the UI. Fixes #353.Seb Bacon2012-01-18-8/+14
| | | |
| | | * Fix more test breakageSeb Bacon2012-01-18-3/+12
| | | |
| | | * Catch timeouts and other extra errors when connection to 3rd party websites ↵Seb Bacon2012-01-18-2/+9
| | | | | | | | | | | | | | | | fails.
| | | * Ensure request typeahead search is tested properly (and fix a validation error).Seb Bacon2012-01-18-1/+3
| | | |
| | | * Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5Seb Bacon2012-01-18-36/+45
| | | |\
| | | * | Fix paging bug for type ahead search. This wasn't caught because the spec ↵Seb Bacon2012-01-18-5/+16
| | | | | | | | | | | | | | | | | | | | didn't call "integrate_views", so the rendering part was mocked by RSpec instead of executed.
| | * | | Merge branch 'wdtk' of https://github.com/sebbacon/alaveteli into wdtkRobin Houston2012-01-19-11/+18
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: app/controllers/application_controller.rb
| | * | | | Limit Xapian wildcard expansionsRobin Houston2012-01-19-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wildcard searches in Xapian can expand uncontrollably, consuming all available RAM and crashing the server. This has been a real problem on WhatDoTheyKnow.com. The underlying issue is tracked in http://trac.xapian.org/ticket/350 This changeset imposes a limit on wildcard expansion. The type-ahead search will first try a wildcard query, and if that fails because of too much expansion will fall back to a plain non-wildcard search.
| * | | | | Fix sporadic spurious test failuresRobin Houston2012-01-19-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...by forcing the IncomingMessage to be re-parsed after we have edited it.
| * | | | | Typo fixRobin Houston2012-01-19-1/+1
| | | | | |
| * | | | | Whitespace cleanupRobin Houston2012-01-19-6/+6
| | |/ / / | |/| | |
| * | | | Forbid very slow-to-load results pagesRobin Houston2012-01-19-0/+7
| | | | | | | | | | | | | | | | | | | | Another temporary patch to protect the live site.
| * | | | Disable Xapian wildcardsRobin Houston2012-01-19-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not use FLAG_WILDCARD or FLAG_PARTIAL anywhere, because wildcard searches can crash the whole server as per http://trac.xapian.org/ticket/350 (e.g. http://www.whatdotheyknow.com/body/search_ahead?query=app will crash the server prior to this commit.) This is a temporary fix while we investigate the possibilities of the set_max_wildcard_expansion() method, which should make it possible to alleviate this issue.
| * | | | Clean up whitespace & indentationRobin Houston2012-01-18-10/+10
| |/ / /
* | | | Show some info about the Alaveteli version currently running. Fixes #319.Seb Bacon2012-01-19-0/+8
| | | |
* | | | Use an atomic write when storing email data.Seb Bacon2012-01-19-1/+1
| | | |
* | | | Don't choke on very long filenames when caching attachments. Fixes #349.Seb Bacon2012-01-19-1/+13
| | | |
* | | | Always show the right search snippet. Fixes #352.Seb Bacon2012-01-19-1/+28
|/ / /
* | | Also disable paging for type-ahead search resultsRobin Houston2012-01-17-1/+0
| | | | | | | | | | | | Same problem as previous commit to this (wdtk) branch.
* | | Disable paginationRobin Houston2012-01-17-1/+0
| |/ |/| | | | | | | Pagination for authority search results in the new request workflow seems to be broken very badly, so disable it for now.
* | Merge branch 'wdtk' into release/0.5Robin Houston2012-01-17-36/+45
|\ \ | |/ |/|
| * Force the 'C' locale for elinksRobin Houston2012-01-17-3/+3
| | | | | | | | | | The behaviour of elinks is locale-dependent. This patch forces LANG=C which makes the behaviour consistent across platforms.
| * Comment typoRobin Houston2012-01-17-1/+1
| |
| * Upgrade commonlibRobin Houston2012-01-17-0/+0
| | | | | | | | Because we want the new version of external_command.rb
| * Explicitly specify little-endian UCS-2Robin Houston2012-01-17-2/+2
| | | | | | | | | | because for some reason iconv is assuming big-endian on my MacBook Pro (OS X 10.7.2) unless told explicitly, and this causes test failure.
| * Flexible location for validate utilityRobin Houston2012-01-17-3/+11
| | | | | | | | | | Allow the WDG HTML validation utility "validate" to be anywhere in UTILITY_SEARCH_PATH, rather than hard-coding /usr/bin.
| * Use AlaveteliExternalCommand for unrtfRobin Houston2012-01-17-3/+1
| |
| * Use AlaveteliExternalCommand for pdf recompressionRobin Houston2012-01-17-7/+3
| |
| * Replace all `which command` callsRobin Houston2012-01-17-14/+10
| | | | | | | | | | | | | | | | | | | | The trouble with `which command` is twofold: - It spawns a whole shell just to find out the path to a binary, every time; - The results are environment-dependent, since they depend on $PATH. It would be better to specify the search path in the configuration file where everything else is specified rather than in the environment. This commit replaces it with the new mechanism from AlaveteliExternalCommand.
| * Typo whoopsRobin Houston2012-01-17-1/+1
| |
| * Call uudecode via AlaveteliExternalCommandRobin Houston2012-01-17-3/+1
| | | | | | | | | | | | So do not rely on a hard-coded path. Also change the order of arguments and use /dev/stdout rather than -, so it works with the Mac/BSD version of uudecode as well as the Linux version.
| * Do not hard-code the path to pdftohtmlRobin Houston2012-01-17-3/+1
| |
| * Paths for external commandsRobin Houston2012-01-17-1/+16
| | | | | | | | | | | | Look for external commands in a config-defined path (defaulting to /usr/bin:/usr/local/bin), rather than requiring the path to be hard-coded or the caller to resolve it.