Commit Graph

841 Commits

Author SHA1 Message Date
Florent Vilmart
21fb14d8f4 Properly deletes authData.provider when set to null 2016-03-17 16:35:20 -04:00
Florent Vilmart
7194fb195c Merge pull request #1068 from ParsePlatform/flovilmart.AllowRolesOps
Allows Operations on Roles
2016-03-17 15:47:12 -04:00
Nikita Lutsenko
ad2a29ed15 Merge pull request #1067 from ParsePlatform/nlutsenko.testing_routes
Unbreak and make specific testing routes work.
2016-03-17 10:47:46 -07:00
Benjamin Woodruff
14d3062602 Merge pull request #986 from ParsePlatform/mongo-uri-encode-auth
Add URI encoding to mongo auth parameters
2016-03-17 09:46:21 -07:00
Florent Vilmart
5c8ad833c7 Merge pull request #1001 from ParsePlatform/flovilmart.queryStringForEmailResets
Properly querystring encode the parameters
2016-03-17 08:16:46 -04:00
Florent Vilmart
9624970cd0 Merge pull request #1004 from ParsePlatform/flovilmart.PushStatus
Push Status API
2016-03-17 08:16:35 -04:00
Florent Vilmart
3837d33ee4 Merge pull request #1066 from ParsePlatform/flovilmart.returnsFullModificationsForREST
Improvements in REST calls
2016-03-17 08:16:18 -04:00
Florent Vilmart
7b3448ee52 Merge pull request #990 from ParsePlatform/flovilmart.nitCLI
serverURL is actually not required in CLI
2016-03-17 08:14:02 -04:00
Florent Vilmart
e270964b4b adds test for issue #1031 2016-03-17 00:04:52 -04:00
Florent Vilmart
e1c475512c Returns updated keys when running with beforeSave 2016-03-16 23:48:52 -04:00
Florent Vilmart
dd7fad8e96 Allows Operations on Roles 2016-03-16 23:07:51 -04:00
Florent Vilmart
40812e2f53 Merge pull request #979 from ParsePlatform/flovilmart.SupportDashboardLikeConfig
Adds support for apps key in config file, throws if length is > 1
2016-03-16 22:43:58 -04:00
Florent Vilmart
0f7335b534 Merge pull request #892 from ParsePlatform/flovilmart.httpRequestDefaultContentType
Default body to querystring, null encoding
2016-03-16 22:43:41 -04:00
Nikita Lutsenko
9ce019d128 Unbreak and make specific testing routes work. 2016-03-16 19:35:44 -07:00
Florent Vilmart
ba545fbf59 Returns full modifications on PUT 2016-03-16 22:30:52 -04:00
Florent Vilmart
7346ff2b38 Merge pull request #1065 from ParsePlatform/flovilmart.hotfix-oauth-login
Makes sure the location in results has the proper objectId
2016-03-16 20:46:31 -04:00
Florent Vilmart
461ddcbd05 Makes sure the location in results has the proper objectId 2016-03-16 20:37:59 -04:00
Benjamin Woodruff
530fad5a58 Move mongoUrl to src/vendor
And add a README to src/vendor
2016-03-16 14:54:52 -07:00
Benjamin Woodruff
836582fdb1 Fix failing tests for uri encoding auth
This uses a *slightly* patched version of node's uri module to allow
commas and colons in hostnames, which causes the parsed representation
of replica sets to be less-awful.

Hostname are still somewhat broken in this representation, because we
have an array of hosts expressed as a list, but this is the
minimum-effort solution to getting format to be able to reprint a parsed
replica set correctly.

I understand that we probably don't want to merge this (for a lot of
reasons), but at least this shows exactly where the issue is, and yields
some useful discussion.
2016-03-16 14:31:44 -07:00
Benjamin Woodruff
81f3a79f04 Add (failing) tests for uri encoding auth 2016-03-16 14:31:44 -07:00
Benjamin Woodruff
a30c81745a Add URI encoding to mongo auth parameters
The mongodb driver requires auth values be URI encoded:
044063097d

This uses node's built-in url module to encode the auth portion, by
parsing and re-formatting it, which causes special characters to get URI
encoded properly:
https://nodejs.org/api/url.html#url_escaped_characters

This is all a bit silly since mongodb just takes our passed uri, and
runs it through the same url parser again, but not before explicitly
erroring on '@' characters in the uri.

This is similiar to #148 (reverted by #297), but with much less code,
and hopefully less breakage. Also, note that `uri_decode_auth` is no
longer needed. That was removed in the above referenced
node-mongodb-native commit.

I've tested this on usernames and passwords with @, !, +, and a space.

Presumably this would also work with usernames and passwords that are
already URI encoded (since parseUrl will simply unescape it, and
formatUrl will escape it again).
2016-03-16 14:31:44 -07:00
Héctor Ramos
d6af77b170 Merge pull request #1058 from ParsePlatform/flovilmart-patch-1
Adds link to stack overflow community.
2016-03-16 09:34:43 -07:00
Florent Vilmart
d45fbd7516 Adds link to stack overflow community.
Adds stack overflow community link
2016-03-16 10:44:57 -04:00
Florent Vilmart
86f93e39a7 supports keys marked as false 2016-03-15 20:22:48 -04:00
Florent Vilmart
6e4357c6df Adds support for apps key in config file, throws if length is > 1 2016-03-15 20:22:48 -04:00
Florent Vilmart
9ea344abb7 Merge pull request #1046 from ParsePlatform/flovilmart.fix1014
Fixes bug related to subqueries on unfetched objects
2016-03-15 19:26:13 -04:00
Florent Vilmart
3451fc3430 fixes same bug affecting $select and $dontSelect 2016-03-15 19:13:40 -04:00
Florent Vilmart
3ed3982e0e Fixes bug affecting matchesQuery and doesNotMatchQuery on relations on unfetched objects 2016-03-15 16:20:32 -04:00
Florent Vilmart
e00112ec3c adds failing test for resolution 2016-03-15 15:19:41 -04:00
Héctor Ramos
3e893738ce Add migration phases screenshot for use in the wiki. 2016-03-14 17:41:37 -07:00
Héctor Ramos
4df9a7e786 Instructiosn moved to the wiki 2016-03-14 16:06:00 -07:00
Florent Vilmart
ad9495bf14 Merge pull request #992 from ParsePlatform/flovilmart.afterSaveFullObjects
Sanitizes RestWrite.data before passing to inflated object
2016-03-14 10:57:33 -04:00
Florent Vilmart
cc4e751682 Merge pull request #1021 from neverov/patch-1
Fixed database url parameter name in the doc
2016-03-14 10:57:17 -04:00
Florent Vilmart
18781f1f82 Removes _PushStatus from system classes, uses direct DB access to write 2016-03-14 10:20:24 -04:00
Florent Vilmart
0bd21cb808 Tweak test with special char 2016-03-14 08:43:27 -04:00
Andrey Neverov
ba77d755e9 Fixed database url parameter name in the doc 2016-03-14 15:21:35 +03:00
Florent Vilmart
120f23c791 reverts to use binary APNs 2016-03-14 08:15:38 -04:00
Florent Vilmart
7c387e1ee9 Adds support to store push results 2016-03-13 23:37:13 -04:00
Florent Vilmart
05baf36a46 Fix tests, uses fork of http2 to support node 4.3.0 without ALPN
- the push server don't send TLS NPN and makes the http2 lib break
- the fork forces the next protocol negociation to h2 as we're sure
2016-03-13 23:35:32 -04:00
Florent Vilmart
dad50d12f5 Upgrade APNS to use HTTP/2
- uses universal certificate
- removes tests logs
- standardized returned promises from APNS and GCM to something usable in _PushStatus
2016-03-13 18:15:15 -04:00
Florent Vilmart
a392c088d8 Uses the resolved promise from the adapter 2016-03-12 15:30:12 -05:00
Florent Vilmart
4d401d9daa Stores the _PushStatus when sending push, set pending, and running states 2016-03-12 14:32:39 -05:00
Florent Vilmart
308fe1498a Centralizes list of system classes into Schema 2016-03-12 13:40:59 -05:00
Florent Vilmart
2557ea6300 Properly querystring encode the parameters 2016-03-12 10:34:57 -05:00
Florent Vilmart
cadd6fe406 Sanitizes RestWrite.data before passing to inflated object 2016-03-11 23:03:47 -05:00
Fosco Marotto
49531e7efe Merge pull request #991 from ParsePlatform/readme-hotfix
Fix README formatting
2016-03-11 17:11:27 -08:00
Héctor Ramos
8a779210af Fix formatting 2016-03-11 17:06:37 -08:00
Florent Vilmart
5c880ca546 serverURL is actually not required 2016-03-11 20:03:40 -05:00
Héctor Ramos
2e41b30179 Merge pull request #988 from ParsePlatform/new-quickstart
Getting Started and Configuring Parse Server
2016-03-11 17:02:47 -08:00
Héctor Ramos
6c437ffb49 PR Feedback 2016-03-11 16:59:17 -08:00