Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Improve accessibility for base design (increase base font size, make font ↵ | Seb Bacon | 2012-01-24 | -40/+27 |
| | | | | sizes relative, improve contrast of text). Fixes #348 | |||
* | Return a 404 for missing user profile pictures. Fixes #363 | Seb Bacon | 2012-01-24 | -1/+9 |
| | ||||
* | Ensure short cache keys for interlock. Fixes #362 | Seb Bacon | 2012-01-24 | -2/+8 |
| | ||||
* | Bug: we are causing a 500 when trying to raise 404 because the arguments to ↵ | Seb Bacon | 2012-01-24 | -1/+11 |
| | | | | the exception constructor are wrong. | |||
* | Don't allow users to page beyond a certain number of results (because in ↵ | Seb Bacon | 2012-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 wdtk | Robin Houston | 2012-01-19 | -4/+4 |
|\ | ||||
| * | Merge branch 'wdtk' of https://github.com/sebbacon/alaveteli into wdtk | Robin Houston | 2012-01-19 | -2/+2 |
| |\ | ||||
| | * | Share a lock file between processes that modify the xapian database. Avoids ↵ | Seb Bacon | 2012-01-19 | -2/+2 |
| | | | | | | | | | | | | a race condition and fixes #304 | |||
| * | | Don't obscure user searches on request listing page behind cache. Fixes #256 | Robin Houston | 2012-01-19 | -2/+2 |
| |/ | ||||
* / | Record URL and PID *before* a request is processed | Robin Houston | 2012-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 wdtk | Seb Bacon | 2012-01-19 | -1/+10 |
|\ | ||||
| * | Do not require Xapian 1.2.7 | Robin Houston | 2012-01-19 | -1/+10 |
| | | | | | | | | Work (with subtly reduced resilience) on earlier versions. | |||
* | | Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtk | Seb Bacon | 2012-01-19 | -40/+116 |
|\| | ||||
| * | Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtk | Robin Houston | 2012-01-19 | -22/+83 |
| |\ | ||||
| | * | Merge branch 'release/0.5' into wdtk | Robin Houston | 2012-01-19 | -17/+64 |
| | |\ | | | | | | | | | | | | | | | | | Conflicts: app/views/public_body/_search_ahead.rhtml | |||
| | | * | Return a 404 for broken attachment urls. Fixes #351. | Seb Bacon | 2012-01-18 | -1/+12 |
| | | | | ||||
| | | * | Don't raise an error if the user deletes a track through the UI. Fixes #353. | Seb Bacon | 2012-01-18 | -8/+14 |
| | | | | ||||
| | | * | Fix more test breakage | Seb Bacon | 2012-01-18 | -3/+12 |
| | | | | ||||
| | | * | Catch timeouts and other extra errors when connection to 3rd party websites ↵ | Seb Bacon | 2012-01-18 | -2/+9 |
| | | | | | | | | | | | | | | | | fails. | |||
| | | * | Ensure request typeahead search is tested properly (and fix a validation error). | Seb Bacon | 2012-01-18 | -1/+3 |
| | | | | ||||
| | | * | Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5 | Seb Bacon | 2012-01-18 | -36/+45 |
| | | |\ | ||||
| | | * | | Fix paging bug for type ahead search. This wasn't caught because the spec ↵ | Seb Bacon | 2012-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 wdtk | Robin Houston | 2012-01-19 | -11/+18 |
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: app/controllers/application_controller.rb | |||
| | * | | | | Limit Xapian wildcard expansions | Robin Houston | 2012-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 failures | Robin Houston | 2012-01-19 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...by forcing the IncomingMessage to be re-parsed after we have edited it. | |||
| * | | | | | Typo fix | Robin Houston | 2012-01-19 | -1/+1 |
| | | | | | | ||||
| * | | | | | Whitespace cleanup | Robin Houston | 2012-01-19 | -6/+6 |
| | |/ / / | |/| | | | ||||
| * | | | | Forbid very slow-to-load results pages | Robin Houston | 2012-01-19 | -0/+7 |
| | | | | | | | | | | | | | | | | | | | | Another temporary patch to protect the live site. | |||
| * | | | | Disable Xapian wildcards | Robin Houston | 2012-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 & indentation | Robin Houston | 2012-01-18 | -10/+10 |
| |/ / / | ||||
* | | | | Show some info about the Alaveteli version currently running. Fixes #319. | Seb Bacon | 2012-01-19 | -0/+8 |
| | | | | ||||
* | | | | Use an atomic write when storing email data. | Seb Bacon | 2012-01-19 | -1/+1 |
| | | | | ||||
* | | | | Don't choke on very long filenames when caching attachments. Fixes #349. | Seb Bacon | 2012-01-19 | -1/+13 |
| | | | | ||||
* | | | | Always show the right search snippet. Fixes #352. | Seb Bacon | 2012-01-19 | -1/+28 |
|/ / / | ||||
* | | | Also disable paging for type-ahead search results | Robin Houston | 2012-01-17 | -1/+0 |
| | | | | | | | | | | | | Same problem as previous commit to this (wdtk) branch. | |||
* | | | Disable pagination | Robin Houston | 2012-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.5 | Robin Houston | 2012-01-17 | -36/+45 |
|\ \ | |/ |/| | ||||
| * | Force the 'C' locale for elinks | Robin Houston | 2012-01-17 | -3/+3 |
| | | | | | | | | | | The behaviour of elinks is locale-dependent. This patch forces LANG=C which makes the behaviour consistent across platforms. | |||
| * | Comment typo | Robin Houston | 2012-01-17 | -1/+1 |
| | | ||||
| * | Upgrade commonlib | Robin Houston | 2012-01-17 | -0/+0 |
| | | | | | | | | Because we want the new version of external_command.rb | |||
| * | Explicitly specify little-endian UCS-2 | Robin Houston | 2012-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 utility | Robin Houston | 2012-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 unrtf | Robin Houston | 2012-01-17 | -3/+1 |
| | | ||||
| * | Use AlaveteliExternalCommand for pdf recompression | Robin Houston | 2012-01-17 | -7/+3 |
| | | ||||
| * | Replace all `which command` calls | Robin Houston | 2012-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 whoops | Robin Houston | 2012-01-17 | -1/+1 |
| | | ||||
| * | Call uudecode via AlaveteliExternalCommand | Robin Houston | 2012-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 pdftohtml | Robin Houston | 2012-01-17 | -3/+1 |
| | | ||||
| * | Paths for external commands | Robin Houston | 2012-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. | |||
| * | Merge branch 'release/0.5' into wdtk | Robin Houston | 2012-01-17 | -45/+6350 |
| |\ |