Commit Graph

433 Commits

Author SHA1 Message Date
Florent Vilmart
5d19c4ab45 Generates default CLP, freezes objects 2016-03-22 08:12:58 -04:00
Florent Vilmart
cc6c3f46fe Merge pull request #1128 from drew-gross/emable-schema-editor
Enabled CLP editing
2016-03-22 07:41:47 -04:00
Drew Gross
ffbca83aa3 Enabled CLP editing 2016-03-21 16:20:12 -07:00
Florent Vilmart
260cc21b67 ParseServer is a class 2016-03-21 08:32:22 -04:00
Florent Vilmart
fb57d91b83 Merge pull request #1110 from ParsePlatform/flovilmart.missingSessionInstallationId
Properly sets installationId on creating session with 3rd party auth
2016-03-21 08:21:47 -04:00
Florent Vilmart
414af99644 Merge pull request #1114 from ParsePlatform/flovilmart.addUniqueObject
Adds support for plain object in $add, $addUnique, $remove
2016-03-21 08:21:30 -04:00
Florent Vilmart
a31baa4ebd differentiate signup and login createdWith.action on _Session 2016-03-20 15:58:17 -04:00
Florent Vilmart
3603b82eac Properly sets installationId on creating session with 3rd party auth 2016-03-20 15:58:16 -04:00
Florent Vilmart
937dde592f Adds support for plain object in $add, $addUnique, $remove 2016-03-20 15:57:54 -04:00
Tsolis Dimitris Sotiris
e4e7e42c65 Add FileSystemAdapter file adapter 2016-03-20 21:35:42 +02:00
Florent Vilmart
46c66667c1 Ignores uncovered mongodbURL 2016-03-19 13:27:37 -04:00
wangmengyan95
555e25bf33 Add LiveQuery 2016-03-18 12:32:31 -07:00
Fosco Marotto
5decaecd4f Merge pull request #1072 from ParsePlatform/fosco.user-cache
Clear the session-user cache when changing _User objects
2016-03-18 08:51:51 -08:00
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
Fosco Marotto
877d29daf8 Clear the session-user cache when changing _User objects 2016-03-17 02:06:26 -07: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
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
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
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
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
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
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
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
Florent Vilmart
5c880ca546 serverURL is actually not required 2016-03-11 20:03:40 -05:00
Florent Vilmart
5ef12b55b4 fixes env:PORT 2016-03-11 19:29:51 -05:00
Florent Vilmart
b89619b6ee Full query support for badge Increment 2016-03-11 16:23:58 -05:00
Florent Vilmart
7d787328c5 Merge pull request #952 from ParsePlatform/flovilmart.OAuthImprovements
AuthData logic refactor
2016-03-11 15:38:19 -05:00