Commit Graph

1991 Commits

Author SHA1 Message Date
Bryan de Leon
4e207d32a7 Fix for unhandled undefined config in reset password pages (#4334)
* Fix for unhandled undefined config

When an invalid application id is passed either for reset/change password or email verification, config.get returns undefined. This causes internal server.

* Throwing a 403 exception instead of returning a 404 for an invalid app id

Also, added a missing semicolon

* Fix indent issues

* Fix invalid colon to semicolon

* Fix space and indent issues

* Tests for the fix for unhandled undefined config
2017-11-11 09:42:20 -05:00
Florent Vilmart
72e20be06d fix #3451 duplicate session upon login (#4337)
* Adds failing test for #3451 (on multiple logins)

* Factor sessionDestruction as part of Session creation flow in RestWrite

* nits
2017-11-11 09:41:23 -05:00
Tom
932a474606 Remove hidden properties in handleLogin & handleMe (#4335) 2017-11-09 17:48:50 -08:00
greenkeeper[bot]
08ab1f453d fix(package): update parse to version 1.10.2 (#4333) 2017-11-08 19:23:56 -08:00
greenkeeper[bot]
bb8041ee45 fix(package): update ws to version 3.3.1 (#4329) 2017-11-08 19:06:38 -05:00
Florent Vilmart
a01159e22c fix(package): update pg-promise to version 7.3.1 (#4324)
Closes #4323
2017-11-06 10:50:50 -07:00
Emilie Montredon
d163269c47 Updated README (#4325)
Added a link to the new SendinBlue adapter for parse-server
2017-11-05 20:59:15 -05:00
greenkeeper[bot]
0e16670b5a fix(package): update ws to version 3.3.0 (#4318) 2017-11-05 13:18:00 -05:00
Benjamin Wilson Friedman
c1a7347143 Fix for _PushStatus Stuck 'running' when Count is Off (#4319)
* Fix for _PushStatus stuck 'running' if count is off

* use 'count' for batches

* push worker test fix
2017-11-05 13:04:46 -05:00
Worathiti Manosroi
842343a1a9 Add password confirmation to choose_password (#3994)
* update choose_password to have the confirmation

* update commander

* reverted the base

* remove some spaces

* nits

* more nits
2017-11-03 16:09:37 -04:00
greenkeeper[bot]
a33c08a751 chore(package): update cross-env to version 5.1.1 (#4299) 2017-11-03 11:54:09 -04:00
Florent Vilmart
07df71a79b fix(package): update pg-promise to version 7.2.1 (#4316)
Closes #4303
2017-11-03 11:52:36 -04:00
greenkeeper[bot]
cabcac221f fix(package): update pg-promise to version 7.1.0 (#4303) 2017-11-03 11:52:01 -04:00
Benjamin Wilson Friedman
c0a81a88b7 Structured /health Response (#4305)
* modifies /health to return json instead of OK

* version removed!
2017-11-03 11:51:46 -04:00
Benjamin Wilson Friedman
46af1b6955 Adds Relative Time options now,weeks & years (#4304)
* Adds 'now' as an option in relative time

* reenables no-console in previous spot

* Adds weeks,months,years and abbreviations

* modified tests to address coverage

* month be gone!
2017-11-01 13:31:08 -07:00
Xavier Damman
84aadba23a Activating Open Collective (#3806)
* Added backers and sponsors on the README

* Added call to donate after npm install

* Update package.json
2017-10-26 21:26:05 -04:00
Florent Vilmart
fecbb2d7ff Release 2.6.5 (#4298) 2017-10-26 17:15:32 -04:00
marvelm
6f1fe89948 Relative time queries (#4289)
* Add relative time queries

* Encode successful result

* Add integration test

* Add more error cases

* Remove unnecessary new Date

* Error when time has both 'in' and 'ago'

* naturalTimeToDate -> relativeTimeToDate

* Add $relativeTime operator

* Throw error if $relativeTime is invalid

* Add integration test for invalid relative time

* Exclude $exists query

* Only run integration tests on MongoDB

* Add it_only_db test helper
bd2ea87c1d/CONTRIBUTING.md (L23)

* Handle where val might be null or undefined

* Add integration test for multiple results

* Lowercase text before processing

* Always past if not future

* Precompute seconds multiplication

* Add shorthand for interval
hr, hrs
min, mins
sec, secs

* Throw error if $relativeTime is used with $exists, $ne, and $eq

* Improve coverage for relativeTimeToDate

* Add test for erroring on floating point units

* Remove unnecessary dropDatabase function

* Unit test $ne, $exists, $eq

* Verify field type

* Fix unit test for $exists
Unnest query object
2017-10-26 16:23:27 -04:00
Florent Vilmart
1dd58b7527 Adds support for read-only masterKey (#4297)
* Adds support for read-only masterKey

* Adds tests to make sure all endpoints are properly protected

* Updates readme

* nits
2017-10-26 15:35:07 -04:00
Benjamin Wilson Friedman
87b79cedfa Handle possible afterSave exception (#4293)
* capture and log exceptions caused by afterFind

* Wording

* Consolidated promise chaining

* use logger instead of console
2017-10-26 14:28:13 -04:00
adammlevy
c2fc0f556e fix URL for Parse npm, was originally pointing to mongodb npm (#4295) 2017-10-26 11:45:33 -04:00
marvelm
8a23c00265 Add support for expiration interval in Push (#4202)
* Add support for expiration_interval in Push

* Support expiration_interval for immediate pushes

* Test

* Add 'expiration_interval' to _PushStatus class

* Fix coverage
2017-10-25 17:30:20 -04:00
Florent Vilmart
a185c97557 The REST API key was improperly inferred from environment (#4292) 2017-10-25 11:46:40 -04:00
Florent Vilmart
3bb9e0e65e Release 2.6.4 (#4287)
*  Release 2.6.4

* Marks port ENV var as PORT

* Fixes broken definitions

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
2017-10-25 09:45:52 -04:00
Florent Vilmart
7d2332e651 Run nsp check on release (#4285)
* Run nsp check on release

* At the right place
2017-10-24 19:06:54 -04:00
Florent Vilmart
72888bc539 Adds ability to login with email when specifying it (#4276)
* Adds ability to login with email when specifying it

* Adds tests for corner cases

* nits
2017-10-24 17:50:48 -04:00
Steven Shipton
6685932b7f update dependencies (#4280) 2017-10-24 15:50:36 -04:00
Benjamin Wilson Friedman
0db858b04c Enables login over POST in addition to GET (#4268)
* Enables login over POST in addition to GET

* Removes explcit method:POST as rp.post does this naturally
2017-10-24 15:47:26 -04:00
Florent Vilmart
d93b0e1fd9 Hotfix: cloud option should be a string 2017-10-23 09:11:08 -04:00
Florent Vilmart
9de4b8b2a7 Refactors configuration management (#4271)
* Adds flow types / Configuration interfaces

* Lets call it options

* Use a single interface to generate the configurations

* Translates options to definitions only if comments are set

* improves logic

* Moves objects around

* Fixes issue affecting logging of circular objects

* fixes undefined env

* Moves all defaults to defaults

* Adds back CLI defaults

* Restored defaults in commander.js

* Merge provided defaults and platform defaults

* Addresses visual nits

* Improves Config.js code

* Adds ability to pass the default value in trailing comments

* Load platform defaults from the definitions file

* proper default values on various options

* Adds ParseServer.start and server.start(options) as quick startup methods

* Moves creating liveQueryServer http into ParseServer.js

* removes dead code

* Adds tests to guarantee we can start a LQ Server from main module

* Fixes incorrect code regading liveQuery init port

* Start a http server for LQ if port is specified

* ensure we dont fail if config.port is not set

* Specify port

* ignore other path skipped in tests

* Adds test for custom middleware setting

* Refactors new Config into Config.get

- Hides AppCache from ParseServer.js, use Config.put which validates

* Extracts controller creation into Controllers/index.js

- This makes the ParseServer init way simpler

* Move serverURL inference into ParseServer

* review nits
2017-10-23 08:43:05 -04:00
greenkeeper[bot]
d29a4483d0 fix(package): update parse-server-push-adapter to version 2.0.2 (#4286) 2017-10-22 23:03:00 -04:00
Florent Vilmart
44b17ef0d2 fix(package): update semver to version 5.4.1 (#4283)
Closes #4044
2017-10-22 15:46:19 -04:00
Florent Vilmart
484fdc2523 chore(package): update mongodb-runner to version 3.6.1 (#4284)
Closes #4164
2017-10-22 15:20:27 -04:00
Florent Vilmart
2b52c81d49 chore(package): update eslint-plugin-flowtype to version 2.39.1 (#4282) 2017-10-22 15:19:40 -04:00
Florent Vilmart
d0e613a632 chore(package): update eslint to version 4.9.0 (#4281) 2017-10-22 14:40:50 -04:00
Florent Vilmart
e4eeadd4c6 Bumps parse sdk 1.10.1 (#4274)
* Fail test case for Issue#3999

* no message

* Bumps Parse to 1.10.1

Updates Polygon test suite to leverage latest version
2017-10-21 16:03:24 -04:00
greenkeeper[bot]
31bd02ce5c fix(package): update parse-server-push-adapter to version 2.0.1 (#4275) 2017-10-21 14:23:10 -04:00
greenkeeper[bot]
bc37972394 fix(package): update pg-promise to version 7.0.3 (#4270) 2017-10-21 12:14:04 -04:00
Gustav Ahlberg
70ad9e9ffd Add request ip to request object (#4265)
* add the client ip to the request config object

* add the config ip to the trigger request object

* add the config ip to the functions request object

* add tests

* remove log

* remove log
2017-10-18 08:13:09 -04:00
Benjamin Wilson Friedman
9376b4d04a Validate serverURL on Start (#4204)
* Added basic validation of publicServerURL

* Fixed up 'verifyServerUrl' and added tests

* Use Parse.serverURL instead, general cleanup.

* Test server port moved to 13376

* Removed reconfigureServer calls with simple changing of Parse.serverURL

* changed var to const

* Disabled automatic serverURL verification during testing, moved verification call into app.on('mount') callback, removed setTimeout from verification.
2017-10-17 14:49:28 -04:00
greenkeeper[bot]
9745caf9fb chore(package): update babel-preset-env to version 1.6.1 (#4263) 2017-10-17 14:48:23 -04:00
greenkeeper[bot]
b3ea75b69a chore(package): update cross-env to version 5.1.0 (#4261) 2017-10-17 14:48:12 -04:00
Florent Vilmart
6963ff61b8 fix(package): update mongodb to version 2.2.33 (#4264)
Closes #4252
2017-10-17 14:48:01 -04:00
greenkeeper[bot]
ac970a40c4 fix(package): update mongodb to version 2.2.32 (#4252) 2017-10-17 14:47:31 -04:00
Benjamin Wilson Friedman
315d30b426 Fix for beforeSave with increment causing key to be Dropped (#4259)
* Fixes an issue where a beforeSave hook could cause a numeric val to be dropped in response.

* Use hasOwnProperty to check instead

* Remove redundant set
2017-10-15 21:15:30 -07:00
greenkeeper[bot]
557a2b2827 fix(package): update pg-promise to version 7.0.2 (#4257) 2017-10-14 18:57:03 -04:00
Benjamin Wilson Friedman
9145c88562 Corrected outdated links (#4254) 2017-10-12 22:40:47 -04:00
Florent Vilmart
f0b7ffcdd6 fix(package): update pg-promise to version 7.0.1 (#4248)
Closes #4239
2017-10-11 17:33:08 -04:00
Florent Vilmart
033437034d Release 2.6.3 (#4233)
*  Release 2.6.3

* Update CHANGELOG.md
2017-10-03 14:33:05 -04:00
Florent Vilmart
7fac070435 Allow queries with String array for pointers containedIn (#4188)
* Adds basic failing test

* Adds ability to use [objectId] for $in/$nin pointers

* makes sure to use a set field

* Makes sure field is defined
2017-10-03 13:50:39 -04:00