Skip to content

Fix error 206 for new Facebook user when verifyUserEmails is true #8352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 50 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
70ada3e
refactor: upgrade express from 4.18.1 to 4.18.2 (#8265)
snyk-bot Oct 31, 2022
963613e
chore(release): 5.4.0-alpha.1 [skip ci]
semantic-release-bot Oct 31, 2022
e90a518
refactor: replace deprecated LRU cache methods (#8266)
Moumouls Nov 1, 2022
81304be
refactor: Upgrade jwks-rsa from 2.1.4 to 2.1.5 (#8278)
snyk-bot Nov 3, 2022
4258122
refactor: Remote code execution via MongoDB BSON parser through proto…
mtrezza Nov 7, 2022
a8cb2a4
refactor: Upgrade pg-promise from 10.12.0 to 10.12.1 (#8299)
parseplatformorg Nov 8, 2022
43194b1
docs: add branch CI badges to README
mtrezza Nov 9, 2022
d27dfa3
refactor: Parse Server option `requestKeywordDenylist` can be bypasse…
mtrezza Nov 9, 2022
7cb266b
refactor: Prototype pollution via Cloud Code Webhooks; fixes security…
mtrezza Nov 9, 2022
2546cc8
fix: Remove Node 12 and Node 17 support (#8279)
dblythy Nov 10, 2022
ed3248f
ci: Bump node version in release workflow (#8310)
mtrezza Nov 10, 2022
4eb5f28
chore(release): 6.0.0-alpha.1 [skip ci]
semantic-release-bot Nov 10, 2022
5bbf9ca
feat: Improve authentication adapter interface to support multi-facto…
dblythy Nov 10, 2022
739a3a9
chore(release): 6.0.0-alpha.2 [skip ci]
semantic-release-bot Nov 10, 2022
2d79c08
feat: Remove deprecation `DEPPS4`: Remove convenience method for http…
dblythy Nov 10, 2022
2054a88
chore(release): 6.0.0-alpha.3 [skip ci]
semantic-release-bot Nov 10, 2022
f535ee6
feat: Remove deprecation `DEPPS2`: Config option `directAccess` defau…
dblythy Nov 10, 2022
9d3c1c6
chore(release): 6.0.0-alpha.4 [skip ci]
semantic-release-bot Nov 10, 2022
130d290
fix: Throwing error in Cloud Code Triggers `afterLogin`, `afterLogout…
dblythy Nov 10, 2022
ebea057
chore(release): 6.0.0-alpha.5 [skip ci]
semantic-release-bot Nov 10, 2022
ccb1497
docs: Update Node badge in README (#8311)
mtrezza Nov 10, 2022
37245f6
feat: Remove support for MongoDB 4.0 (#8292)
dblythy Nov 10, 2022
c8227cd
chore(release): 6.0.0-alpha.6 [skip ci]
semantic-release-bot Nov 10, 2022
9af9115
ci: Bump CI environments (#8312)
mtrezza Nov 10, 2022
7d622f0
feat: Upgrade Redis 3 to 4 (#8293)
dblythy Nov 11, 2022
7336afc
chore(release): 6.0.0-alpha.7 [skip ci]
semantic-release-bot Nov 11, 2022
6c16021
feat: Restrict use of `masterKey` to localhost by default (#8281)
dblythy Nov 11, 2022
6e66b20
chore(release): 6.0.0-alpha.8 [skip ci]
semantic-release-bot Nov 11, 2022
ed499e3
feat: Remove deprecation `DEPPS3`: Config option `enforcePrivateUsers…
dblythy Nov 16, 2022
dd45eb2
chore(release): 6.0.0-alpha.9 [skip ci]
semantic-release-bot Nov 16, 2022
6e52ec7
docs: change PR reference label in template
mtrezza Nov 16, 2022
4b1d46f
docs: fix PR template
mtrezza Nov 16, 2022
f29d972
fix: Cloud Code trigger `beforeSave` does not work with `Parse.Role` …
dblythy Nov 19, 2022
c8d8e9f
chore(release): 6.0.0-alpha.10 [skip ci]
semantic-release-bot Nov 19, 2022
fe3dc0d
ci: Add auto-release LTS branch detection (#8325)
mtrezza Nov 19, 2022
c312e26
ci: Add auto-release LTS branch detection (#8326)
mtrezza Nov 19, 2022
6f52744
ci: Update release workflow for LTS branches (#8327)
mtrezza Nov 19, 2022
ab82635
fix: Parse Server option `masterKeyIps` does not include localhost by…
dblythy Nov 25, 2022
e32cc7d
chore(release): 6.0.0-alpha.11 [skip ci]
semantic-release-bot Nov 25, 2022
40dd82f
refactor: Bump minimatch from 3.0.4 to 3.1.2 (#8336)
dependabot[bot] Nov 25, 2022
b2761fb
feat: Upgrade Redis 3 to 4 for LiveQuery (#8333)
dblythy Nov 26, 2022
b458dce
chore(release): 6.0.0-alpha.12 [skip ci]
semantic-release-bot Nov 26, 2022
536bb2f
refactor: Bump decode-uri-component from 0.2.0 to 0.2.2 (#8342)
dependabot[bot] Dec 6, 2022
b48c270
refactor: Improve incorrect deprecation log message for auth adapter …
mtrezza Dec 6, 2022
0a8670d
refactor: Bump qs from 6.5.2 to 6.5.3 (#8348)
dependabot[bot] Dec 7, 2022
8f3b694
feat: Add option to change the log level of the logs emitted by trigg…
alljinx Dec 7, 2022
fded5be
chore(release): 6.0.0-alpha.13 [skip ci]
semantic-release-bot Dec 7, 2022
e22b73d
feat: Write log entry when request with master key is rejected as out…
dblythy Dec 16, 2022
65a6dd1
chore(release): 6.0.0-alpha.14 [skip ci]
semantic-release-bot Dec 16, 2022
5a26426
ci: Add CI check for Parse Server options definitions (#7955)
dblythy Dec 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"presets": [
["@babel/preset-env", {
"targets": {
"node": "12"
"node": "14"
}
}]
],
Expand Down
3 changes: 1 addition & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
### Issue Description
<!-- Add a brief description of the issue this PR solves. -->

Related issue: FILL_THIS_OUT
Closes: FILL_THIS_OUT

### Approach
<!-- Add a description of the approach in this PR. -->
Expand All @@ -26,4 +26,3 @@ Related issue: FILL_THIS_OUT
- [ ] Add changes to documentation (guides, repository pages, in-code descriptions)
- [ ] Add [security check](https://github.com/parse-community/parse-server/blob/master/CONTRIBUTING.md#security-checks)
- [ ] Add new Parse Error codes to Parse JS SDK <!-- no hard-coded error codes in Parse Server -->
- [x] A changelog entry is created automatically using the pull request title (do not manually add a changelog entry)
102 changes: 48 additions & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:
branches: [ release, alpha, beta ]
env:
NODE_VERSION: 18.1.0
NODE_VERSION: 18.12.1
PARSE_SERVER_TEST_TIMEOUT: 20000
jobs:
check-code-analysis:
Expand All @@ -32,7 +32,7 @@ jobs:
check-ci:
name: Node Engine Check
timeout-minutes: 15
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.NODE_VERSION }}
Expand All @@ -53,7 +53,7 @@ jobs:
check-lint:
name: Lint
timeout-minutes: 15
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.NODE_VERSION }}
Expand All @@ -70,10 +70,31 @@ jobs:
- name: Install dependencies
run: npm ci
- run: npm run lint
check-definitions:
name: Check Definitions
timeout-minutes: 5
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
- name: Install dependencies
run: npm ci
- name: CI Definitions Check
run: npm run ci:definitionsCheck
check-circular:
name: Circular Dependencies
timeout-minutes: 5
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.NODE_VERSION }}
Expand All @@ -93,7 +114,7 @@ jobs:
check-docker:
name: Docker Build
timeout-minutes: 15
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -110,7 +131,7 @@ jobs:
check-lock-file-version:
name: NPM Lock File Version
timeout-minutes: 5
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check NPM lock file version
Expand All @@ -121,66 +142,39 @@ jobs:
strategy:
matrix:
include:
- name: MongoDB 4.0, Standalone, MMAPv1
MONGODB_VERSION: 4.0.28
MONGODB_TOPOLOGY: standalone
MONGODB_STORAGE_ENGINE: mmapv1
NODE_VERSION: 18.1.0
- name: MongoDB 4.0, ReplicaSet, WiredTiger
MONGODB_VERSION: 4.0.28
MONGODB_TOPOLOGY: replicaset
MONGODB_STORAGE_ENGINE: wiredTiger
NODE_VERSION: 18.1.0
- name: MongoDB 4.2, ReplicaSet, WiredTiger
- name: MongoDB 4.2, ReplicaSet
MONGODB_VERSION: 4.2.19
MONGODB_TOPOLOGY: replicaset
MONGODB_STORAGE_ENGINE: wiredTiger
NODE_VERSION: 18.1.0
- name: MongoDB 4.4, ReplicaSet, WiredTiger
NODE_VERSION: 18.12.1
- name: MongoDB 4.4, ReplicaSet
MONGODB_VERSION: 4.4.13
MONGODB_TOPOLOGY: replicaset
MONGODB_STORAGE_ENGINE: wiredTiger
NODE_VERSION: 18.1.0
- name: MongoDB 5, ReplicaSet, WiredTiger
NODE_VERSION: 18.12.1
- name: MongoDB 5, ReplicaSet
MONGODB_VERSION: 5.3.2
MONGODB_TOPOLOGY: replicaset
MONGODB_STORAGE_ENGINE: wiredTiger
NODE_VERSION: 18.1.0
- name: MongoDB 6, ReplicaSet, WiredTiger
NODE_VERSION: 18.12.1
- name: MongoDB 6, ReplicaSet
MONGODB_VERSION: 6.0.2
MONGODB_TOPOLOGY: replicaset
MONGODB_STORAGE_ENGINE: wiredTiger
NODE_VERSION: 18.1.0
NODE_VERSION: 18.12.1
- name: Redis Cache
PARSE_SERVER_TEST_CACHE: redis
MONGODB_VERSION: 4.4.13
MONGODB_TOPOLOGY: standalone
MONGODB_STORAGE_ENGINE: wiredTiger
NODE_VERSION: 18.1.0
- name: Node 12
MONGODB_VERSION: 4.4.13
MONGODB_TOPOLOGY: standalone
MONGODB_STORAGE_ENGINE: wiredTiger
NODE_VERSION: 12.22.11
NODE_VERSION: 18.12.1
- name: Node 14
MONGODB_VERSION: 4.4.13
MONGODB_TOPOLOGY: standalone
MONGODB_STORAGE_ENGINE: wiredTiger
NODE_VERSION: 14.19.1
NODE_VERSION: 14.21.1
- name: Node 16
MONGODB_VERSION: 4.4.13
MONGODB_TOPOLOGY: standalone
MONGODB_STORAGE_ENGINE: wiredTiger
NODE_VERSION: 16.14.2
- name: Node 17
MONGODB_VERSION: 4.4.13
MONGODB_TOPOLOGY: standalone
MONGODB_STORAGE_ENGINE: wiredTiger
NODE_VERSION: 17.9.0
NODE_VERSION: 16.18.1
fail-fast: false
name: ${{ matrix.name }}
timeout-minutes: 15
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
services:
redis:
image: redis
Expand Down Expand Up @@ -220,32 +214,32 @@ jobs:
include:
- name: PostgreSQL 11, PostGIS 3.0
POSTGRES_IMAGE: postgis/postgis:11-3.0
NODE_VERSION: 18.1.0
NODE_VERSION: 18.12.1
- name: PostgreSQL 11, PostGIS 3.1
POSTGRES_IMAGE: postgis/postgis:11-3.1
NODE_VERSION: 18.1.0
NODE_VERSION: 18.12.1
- name: PostgreSQL 11, PostGIS 3.2
POSTGRES_IMAGE: postgis/postgis:11-3.2
NODE_VERSION: 18.1.0
NODE_VERSION: 18.12.1
- name: PostgreSQL 11, PostGIS 3.3
POSTGRES_IMAGE: postgis/postgis:11-3.3
NODE_VERSION: 18.1.0
NODE_VERSION: 18.12.1
- name: PostgreSQL 12, PostGIS 3.3
POSTGRES_IMAGE: postgis/postgis:12-3.3
NODE_VERSION: 18.1.0
NODE_VERSION: 18.12.1
- name: PostgreSQL 13, PostGIS 3.3
POSTGRES_IMAGE: postgis/postgis:13-3.3
NODE_VERSION: 18.1.0
NODE_VERSION: 18.12.1
- name: PostgreSQL 14, PostGIS 3.3
POSTGRES_IMAGE: postgis/postgis:14-3.3
NODE_VERSION: 18.1.0
NODE_VERSION: 18.12.1
- name: PostgreSQL 15, PostGIS 3.3
POSTGRES_IMAGE: postgis/postgis:15-3.3
NODE_VERSION: 18.1.0
NODE_VERSION: 18.12.1
fail-fast: false
name: ${{ matrix.name }}
timeout-minutes: 15
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
services:
redis:
image: redis
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-automated.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: release-automated
on:
push:
branches: [ release, alpha, beta, next-major ]
branches: [ release, alpha, beta, next-major, 'release-[0-9]+.x.x' ]
jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -17,7 +17,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 18.1.0
registry-url: https://registry.npmjs.org/
- name: Cache Node.js modules
uses: actions/cache@v2
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 18.1.0
- name: Cache Node.js modules
uses: actions/cache@v2
with:
Expand Down
7 changes: 4 additions & 3 deletions DEPRECATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ The following is a list of deprecations, according to the [Deprecation Policy](h
| ID | Change | Issue | Deprecation [ℹ️][i_deprecation] | Planned Removal [ℹ️][i_removal] | Status [ℹ️][i_status] | Notes |
|--------|-------------------------------------------------|----------------------------------------------------------------------|---------------------------------|---------------------------------|-----------------------|-------|
| DEPPS1 | Native MongoDB syntax in aggregation pipeline | [#7338](https://github.com/parse-community/parse-server/issues/7338) | 5.0.0 (2022) | 6.0.0 (2023) | deprecated | - |
| DEPPS2 | Config option `directAccess` defaults to `true` | [#6636](https://github.com/parse-community/parse-server/pull/6636) | 5.0.0 (2022) | 6.0.0 (2023) | deprecated | - |
| DEPPS3 | Config option `enforcePrivateUsers` defaults to `true` | [#7319](https://github.com/parse-community/parse-server/pull/7319) | 5.0.0 (2022) | 6.0.0 (2023) | deprecated | - |
| DEPPS4 | Remove convenience method for http request `Parse.Cloud.httpRequest` | [#7589](https://github.com/parse-community/parse-server/pull/7589) | 5.0.0 (2022) | 6.0.0 (2023) | deprecated | - |
| DEPPS2 | Config option `directAccess` defaults to `true` | [#6636](https://github.com/parse-community/parse-server/pull/6636) | 5.0.0 (2022) | 6.0.0 (2023) | removed | - |
| DEPPS3 | Config option `enforcePrivateUsers` defaults to `true` | [#7319](https://github.com/parse-community/parse-server/pull/7319) | 5.0.0 (2022) | 6.0.0 (2023) | removed | - |
| DEPPS4 | Remove convenience method for http request `Parse.Cloud.httpRequest` | [#7589](https://github.com/parse-community/parse-server/pull/7589) | 5.0.0 (2022) | 6.0.0 (2023) | removed | - |
| DEPPS5 | Config option `allowClientClassCreation` defaults to `false` | [#7925](https://github.com/parse-community/parse-server/pull/7925) | 5.3.0 (2022) | 7.0.0 (2024) | deprecated | - |
| DEPPS6 | Auth providers disabled by default | [#7953](https://github.com/parse-community/parse-server/pull/7953) | 5.3.0 (2022) | 7.0.0 (2024) | deprecated | - |
| DEPPS7 | Remove file trigger syntax `Parse.Cloud.beforeSaveFile((request) => {})` | [#7966](https://github.com/parse-community/parse-server/pull/7966) | 5.3.0 (2022) | 7.0.0 (2024) | deprecated | - |
| DEPPS8 | Login with expired 3rd party authentication token defaults to `false` | [#7079](https://github.com/parse-community/parse-server/pull/7079) | 5.3.0 (2022) | 7.0.0 (2024) | deprecated | - |

[i_deprecation]: ## "The version and date of the deprecation."
[i_removal]: ## "The version and date of the planned removal."
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
![parse-repository-header-server](https://user-images.githubusercontent.com/5673677/138278489-7d0cebc5-1e31-4d3c-8ffb-53efcda6f29d.png)

---

[![Build Status](https://github.com/parse-community/parse-server/workflows/ci/badge.svg?branch=alpha)](https://github.com/parse-community/parse-server/actions?query=workflow%3Aci+branch%3Aalpha)
[![Build Status](https://github.com/parse-community/parse-server/workflows/ci/badge.svg?branch=beta)](https://github.com/parse-community/parse-server/actions?query=workflow%3Aci+branch%3Abeta)
[![Build Status](https://github.com/parse-community/parse-server/workflows/ci/badge.svg?branch=release)](https://github.com/parse-community/parse-server/actions?query=workflow%3Aci+branch%3Arelease)
[![Snyk Badge](https://snyk.io/test/github/parse-community/parse-server/badge.svg)](https://snyk.io/test/github/parse-community/parse-server)
[![Coverage](https://img.shields.io/codecov/c/github/parse-community/parse-server/alpha.svg)](https://codecov.io/github/parse-community/parse-server?branch=alpha)
[![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/parse-dashboard/releases)

[![Node Version](https://img.shields.io/badge/nodejs-12,_14,_16,_17,_18-green.svg?logo=node.js&style=flat)](https://nodejs.org)
[![Node Version](https://img.shields.io/badge/nodejs-14,_16,_18-green.svg?logo=node.js&style=flat)](https://nodejs.org)
[![MongoDB Version](https://img.shields.io/badge/mongodb-4.0,_4.2,_4.4,_5,_6-green.svg?logo=mongodb&style=flat)](https://www.mongodb.com)
[![Postgres Version](https://img.shields.io/badge/postgresql-11,_12,_13,_14,_15-green.svg?logo=postgresql&style=flat)](https://www.postgresql.org)

Expand Down Expand Up @@ -126,10 +128,8 @@ Parse Server is continuously tested with the most recent releases of Node.js to

| Version | Latest Version | End-of-Life | Compatible |
|------------|----------------|-------------|------------|
| Node.js 12 | 12.22.11 | April 2022 | ✅ Yes |
| Node.js 14 | 14.19.1 | April 2023 | ✅ Yes |
| Node.js 16 | 16.14.2 | April 2024 | ✅ Yes |
| Node.js 17 | 17.9.0 | June 2022 | ✅ Yes |
| Node.js 18 | 18.1.0 | April 2025 | ✅ Yes |

#### MongoDB
Expand Down Expand Up @@ -389,7 +389,7 @@ const server = ParseServer({
},

// The password policy
passwordPolicy: {
passwordPolicy: {
// Enforce a password of at least 8 characters which contain at least 1 lower case, 1 upper case and 1 digit
validatorPattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})/,
// Do not allow the username as part of the password
Expand Down Expand Up @@ -430,7 +430,7 @@ const api = new ParseServer({

The above route can be invoked by sending a `GET` request to:
`https://[parseServerPublicUrl]/[parseMount]/[pagesEndpoint]/[appId]/[customRoute]`

The `handler` receives the `request` and returns a `custom_page.html` webpage from the `pages.pagesPath` directory as response. The advantage of building a custom route this way is that it automatically makes use of Parse Server's built-in capabilities, such as [page localization](#pages) and [dynamic placeholders](#dynamic-placeholders).

### Reserved Paths
Expand Down Expand Up @@ -518,7 +518,7 @@ Parse Server allows developers to choose from several options when hosting files
`GridFSBucketAdapter` is used by default and requires no setup, but if you're interested in using Amazon S3, Google Cloud Storage, or local file storage, additional configuration information is available in the [Parse Server guide](http://docs.parseplatform.org/parse-server/guide/#configuring-file-adapters).

## Idempotency Enforcement

**Caution, this is an experimental feature that may not be appropriate for production.**

This feature deduplicates identical requests that are received by Parse Server multiple times, typically due to network issues or network adapter access restrictions on mobile operating systems.
Expand Down
Loading