summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Ensure doc groups are sorted before merging them2735-duplicate-docsAdam Kocoloski2015-07-181-3/+11
| | | | | | | | | | We had been implicitly assuming that clients send us sorted groups, but unsurprisingly that's not always the case. The additional sorting here should be redundant, but the consequences of merging unsorted groups are severe -- we can end up with uniqueness violations on the primary key in the database -- and so we add an additional sort here. COUCHDB-2735
* Preserve bucket ordering during validationAdam Kocoloski2015-07-151-3/+5
| | | | | | | | | | | Document buckets are sorted by docid, but the validation code was reversing the buckets. If multiple clients send concurrent updates for the same document the broken sorting can result in duplicate documents. The particular structure of the patch here is chosen to match the 2.x codebase. COUCHDB-2735
* Don't upgrade admin hashes into the _users database2299-dont-upgrade-admin-hashes-stupidlyRobert Newson2014-08-211-2/+3
| | | | | | | | | | | Admin users are stored in .ini files and are not full-fledged user documents. Internally, a fake document is made to allow insertion into the auth cache. CouchDB 1.6 introduced a feature to upgrade password hashes from the legacy simple hash scheme to the stronger PBKDF2 scheme. It inappropriately attempted to do this to the fake admin docs, which do not pass the _design/_auth validation checks. This is fortunate, however, as CouchDB would then have written the admin users into the users database causing widespread confusion and fear.
* hash admin passwords on startup when listRobert Newson2014-08-181-1/+3
|
* COUCHDB-2233 - Correct HTML interpolation instances in documents.1.6.0Christian Hogan2014-05-056-26/+26
| | | | | | | | | | Further updating instances of <%= and to <%- within documents to correctly handle HTML interpolation. Tested for regression in - 34.0.1847.131 - Safari 7.0.2 Signed-off-by: Alexander Shorin <kxepal@apache.org>
* Apply workaround fix for replication checkpoints test against R14B01Alexander Shorin2014-05-051-1/+18
| | | | | | | | | | | | R14B01 and R14B02 both are affected to OTP-9167 Erlang issue which causes 4 tests failure because supervisor restarts worker with old ChildSpec ignoring changes in use_checkpoint options. This fix makes all tests passed, but leaves a notice in verbose mode that there is a problem and how it could be resolved. Another possible solution is to isolate test_use_checkpoints calls, but this will be only hide the issue while it still may happened in prod.
* Use <%- when interpolating XSS targetsKyle Snavely2014-05-0111-17/+17
| | | | | | | | - I tried to not be super heavy handed, only using <%- for values that could be set with XSS payloads or otherwise come from a user/data. Conflicts: src/fauxton/app/addons/auth/templates/nav_link_title.html
* Add some more files to the build systemDirkjan Ochtman2014-04-151-0/+2
|
* Fauxton: Fix global var in logs/resourcesRobert Kowalski2014-04-141-1/+1
|
* Changes: Some button class cleanupsuelockwood2014-04-142-5/+8
|
* Changes from review:Robert Kowalski2014-04-143-6/+11
| | | | | | Fix button text trigger Toggle button gray on click Change padding
* couchserver: also serve files with cachebuster, remove the GET-ParamRobert Kowalski2014-04-141-0/+1
|
* Fauxton: remove the hidden tabsRobert Kowalski2014-04-144-55/+0
| | | | Closes #200
* Fauxton: add external ZeroClipboard DependencyRobert Kowalski2014-04-142-0/+1031
|
* Fauxton: redesign _changes-UIRobert Kowalski2014-04-144-32/+106
| | | | | | | Implement copying to clipboard Change the view Closes COUCHDB-2206
* Fauxton: Code cleanupGarren Smith2014-04-143-11/+2
| | | | | Remove old linted config Add resizeColumns to app
* Fauxton fixesGarren Smith2014-04-144-12/+14
| | | | | * Fix stats css was leaking over to other pages * Fix new view creation failing for a new design doc
* Fauxton: Fix failing pagination testGarren Smith2014-04-141-1/+1
|
* Fauxton: fix missing leading zeros in logsRobert Kowalski2014-04-144-9/+47
| | | | | | | | | This adds leading zeros to the times in the log view. Before that the times were displayed like 1:5:3 (if it were 01:05:03) because getHours() and friends are returning a Number and not a String with a leading 0. In the case of 1:5:3 the corrected time is now displayed as: 01:05:03. As d3 has a nice date formatter we do not have to roll our own.
* Fauxton: Remove reset of paginationGarren Smith2014-04-141-2/+0
|
* Fix automake subdir-objects warnings on Mac OS XAlexander Shorin2014-04-133-0/+6
|
* Fauxton: Improved paginationGarren Smith2014-04-109-238/+289
| | | | | | | | | | | | | | | | This is a new version of pagination in Fauxton using skip. It uses a PagingCollection that has the main algorithm for pagination and exposes a nice api. This is an intermediate step as this is a much better pagination than we have at the moment. However using just skip for pagination is not optimal as there are two cases where skip pagination fails - For very large skips and for when documents that a user have paginated past have been deleted. The next step once this has landed will be to add in a startkey_docid pagination as well. The PagingCollection would then decided which method to use to paginate for an index.
* Merge branch '2221-bug-validate-auth-params'Robert Newson2014-04-092-4/+28
|\
| * Verify that auth-related properties are well-formed2221-bug-validate-auth-paramsRobert Newson2014-04-062-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Passing unexpected values to auth fields can result in server issues. Notably, setting "iterations" to a string will cause an infinite loop as the comparison 'when Iteration > Iterations' will never evaluate to true. The latest validate_doc_update prevents user docs with this problem and administrators can deploy that check themselves (and only administrators can edit design documents). A server administrator can also insist on lower and upper bounds for iteration count to reject weakly protected passwords and resource-hungry passwords respectively. COUCHDB-2221
* | Fix for Urlencoding utils, checking for character that doesn't need encodingsuelockwood2014-04-081-3/+3
|/
* Fauxton: fix undefined d3 dependencyRobert Kowalski2014-04-051-1/+1
| | | | Fixes the ActiveTasks View
* Update call can take longer than 5 secondsRobert Newson2014-04-011-1/+1
|
* Fauxton: Fix global varRobert Kowalski2014-04-011-1/+1
|
* Model was deleting id (not _id) that is set by user. Also a bunch of ↵suelockwood2014-04-011-9/+8
| | | | whitespace cleanup.
* Update template helpers with utils methods for encoding and removing special ↵suelockwood2014-04-011-6/+11
| | | | characters
* Fauxton: fix tests for AuthRobert Kowalski2014-03-301-1/+1
|
* s/max/max_countRobert Newson2014-03-271-1/+1
|
* Fix Fauxton dependancie issuesGarren Smith2014-03-276-30/+25
| | | | | | | | I've modified nv.d3 to be an amd module. This isn't pretty but it's the best fix, otherwise we cannot use this library. I've also added a new config in settings.json.default for couchapp deployment as the current release config doesn't work with a couchapp
* Fix the build for the d3 updatesuelockwood2014-03-263-6/+21
|
* Readd 'Could not create admin.' to the beginning of the error messageRobert Kowalski2014-03-261-5/+13
| | | | was removed in b63ff1b50b7bde0c8f1f95988d076dda63f41fed
* Updating pie chart to reflect nvd3's removal of pie.values(), tweaking CSS ↵Christian Hogan2014-03-253-5/+13
| | | | to make pie chart fit all nice like.
* Require.js config to support d3 v3 update.Christian Hogan2014-03-251-0/+8
|
* Updating d3 to v3.4.3 and nv.d3 to v1.1.15Christian Hogan2014-03-253-7106/+10718
|
* Configurable upper bound to _uuids count parameterRobert Newson2014-03-251-0/+5
|
* Fauxton: Redirected to correct page after loginGarren Smith2014-03-255-7/+36
| | | | Fixes COUCHDB-2209
* Fix error messageAndy Wenk2014-03-211-1/+1
| | | | | Small typo in the error message. Was ?=rev but should read ?rev=
* Fauxton: fix global varRobert Kowalski2014-03-211-4/+5
|
* Fauxton: Config test fixesRobert Kowalski2014-03-212-23/+36
|
* Fauxton: Fire authenticated event when user is authenticatedGarren Smith2014-03-211-0/+2
|
* Keys validation, textarea and cleanupGarren Smith2014-03-204-28/+90
|
* Remove Stale for all docs, but keep it for indexessuelockwood2014-03-201-0/+6
|
* Cleaning up query options UIsuelockwood2014-03-203-83/+160
| | | | | | | null object fix. Improved key support initial linking with paginate Fix linting issue
* Fix error message in database permissionsRobert Kowalski2014-03-191-1/+1
| | | | Show the message from the server instead of the whole JSON as text
* Edit Config name with validation.suelockwood2014-03-194-15/+54
| | | | Fix for config modal height
* Fauxton: fix navigating back to previous pageRobert Kowalski2014-03-173-1/+36
| | | | Fixes #COUCHDB-2169