Commit Graph

1728 Commits

Author SHA1 Message Date
Candy 4a93935825 Merge pull request #2566 from strongloop/backport/fix_misconfigured-change-replication
Backport of #2565
2016-07-29 15:14:54 -04:00
Amir-61 6fd87c45e7 Merge pull request #2560 from strongloop/avoid-using-deprecated-methods
Avoid calling deprecated methds
2016-07-29 11:44:43 -04:00
Miroslav Bajtoš fa8ac8d324 Backport of #2565 2016-07-29 11:39:47 -04:00
Amir Jafarian 2ab599fdd1 Avoid calling deprecated methds
*Avoid calling deprecated
`getHttpMethod` and `getFullPath`
2016-07-28 11:29:25 -04:00
Miroslav Bajtoš b3c66f34c8 Merge pull request #2555 from strongloop/fix/global-registry-in-fixtures-2x
test: use local registry in test fixtures
2016-07-27 15:29:23 +02:00
Miroslav Bajtoš 895629632f test: use local registry in test fixtures
Use local registry in test fixtures to prevent collision in globally
shared models.

Fix issues discoverd in auth implementation where the global registry
was used instead of the correct local one.
2016-07-27 15:06:32 +02:00
Loay 13cf1aa160 Merge pull request #2553 from strongloop/backport/issue580-test
Fix test case error
2016-07-26 15:40:37 -04:00
Loay a8f30af49d Fix test case error 2016-07-26 13:29:11 -04:00
Loay 5024b50063 Merge pull request #2540 from strongloop/backport/issue580
Backport/issue580
2016-07-25 14:46:58 -04:00
Loay 619372e51e Backport/Fix security issue 580 2016-07-25 11:06:19 -04:00
Miroslav Bajtoš e7bf538a2c 2.29.1
* Fix description for User.prototype.hasPassword (Jue Hou)
 * Fix verificationToken bug #2440 (Loay)
 * add missing unit tests for #2108 (Benjamin Kroeger)
2016-07-12 16:53:57 +02:00
Jue Hou 8fe77b2a06 Fix description for User.prototype.hasPassword 2016-06-17 17:35:28 -04:00
Loay 4480cd92ab Fix verificationToken bug #2440 2016-06-17 11:16:06 -04:00
Benjamin Kroeger 7e051a7549 add missing unit tests for #2108
Subsequent token middleware tries to read `token.id`
when `enableDoublecheck: true`.
That caused a "Cannot read property `id` of `null`" error
when the first middleware didn't actually find a valid accessToken.

[back-port of #2227]
2016-06-13 15:30:28 +02:00
Miroslav Bajtoš a1c98a8589 2.29.0
* test: increase timeouts on CI (Miroslav Bajtoš)
 * jscsrc: remove jsDoc rule (Miroslav Bajtoš)
 * Deprecate getters for express 3.x middleware (Miroslav Bajtoš)
 * Remove env.json and strong-pm dir (Ritchie Martori)
 * Fix JSCS unsupported rule error (Jason)
 * Resolver support return promise (juehou)
 * Update user.js (Rik)
 * Backport separate error checking and done logic (Simon Ho)
 * Clean up by removing unnecessary comments (Supasate Choochaisri)
 * Add feature to not allow duplicate role name (Supasate Choochaisri)
 * update/insert copyright notices (Ryan Graham)
 * relicense as MIT only (Ryan Graham)
 * Upgrade phantomjs to 2.x (Miroslav Bajtoš)
 * app: send port:0 instead of port:undefined (Miroslav Bajtoš)
 * travis: drop node@5, add node@6 (Miroslav Bajtoš)
 * Disable DEBUG output for eslint on Jenkins CI (Miroslav Bajtoš)
 * test/rest.middleware: use local registry (Miroslav Bajtoš)
 * Fix role.isOwner to support app-local registry (Miroslav Bajtoš)
 * test/user: use local registry (Miroslav Bajtoš)
2016-06-07 17:07:07 +02:00
Miroslav Bajtoš f54a83d530 Merge pull request #2395 from strongloop/deprecate-express-middleware-2.x
[SEMVER-MINOR] Deprecate getters for express 3.x middleware
2016-06-01 10:27:08 +02:00
Miroslav Bajtoš b013e66883 test: increase timeouts on CI 2016-06-01 09:26:45 +02:00
Miroslav Bajtoš 05f8774ed6 jscsrc: remove jsDoc rule
The rule is no longer supported.
2016-05-31 18:58:14 +02:00
Miroslav Bajtoš 75da4c7784 Deprecate getters for express 3.x middleware
In LoopBack 3.0, we are removing these getters, see #2394.
2016-05-31 18:58:10 +02:00
Ritchie Martori 25fe4970e6 Remove env.json and strong-pm dir
[back-port of https://github.com/strongloop/loopback/pull/2327]
2016-05-13 13:46:48 +02:00
Jason 6097fbc005 Fix JSCS unsupported rule error
Replace 'validateJSDoc' rule with 'jsDoc'. 'validateJSDoc' was
deprecated in v1.7.0.

In related news, JSCS was recently deprecated in favor of ESlint
so .jscrc can be removed once features have been rolled over.
2016-05-12 16:56:06 -07:00
Simon Ho 14aed2251c Merge pull request #2317 from strongloop/backport/change-all-hrefs-in-verification-email
Update user.js
2016-05-10 17:15:23 -07:00
juehou 8fef4845f8 Resolver support return promise 2016-05-10 18:00:42 -04:00
Rik 7868803711 Update user.js
allow to change all {href} instances in user.verify() mail into generated url instead of just one
2016-05-09 12:32:05 -07:00
Simon Ho 3f54b07ab8 Merge pull request #2309 from strongloop/backport/separate-error-and-done-logic
Backport separate error checking and done logic
2016-05-06 15:33:36 -07:00
Simon Ho 25ade96d27 Backport separate error checking and done logic 2016-05-06 14:07:38 -07:00
Simon Ho 9311e918cb Merge pull request #2296 from strongloop/backport/do-not-allow-duplicate-role-names
Backport/do not allow duplicate role names
2016-05-05 11:35:42 -07:00
Supasate Choochaisri e89fbd7ce8 Clean up by removing unnecessary comments
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-05-05 10:51:40 -07:00
Supasate Choochaisri 4798b2f8c9 Add feature to not allow duplicate role name
- Also fix jshint error in backported test
2016-05-05 10:51:28 -07:00
Miroslav Bajtoš 692c67384a Merge pull request #2288 from strongloop/support-node-v6-in-2.x
Support node v6 in 2.x
2016-05-04 09:16:46 +02:00
Ryan Graham 4d6f2e7ab7
update/insert copyright notices 2016-05-03 17:10:46 -07:00
Ryan Graham 553889b378
relicense as MIT only 2016-05-03 17:09:47 -07:00
Miroslav Bajtoš e2b1f78f1e Upgrade phantomjs to 2.x 2016-05-03 19:00:01 +02:00
Miroslav Bajtoš da2fb0ae15 app: send port:0 instead of port:undefined
Node v6 no longer supports port:undefined, this commit is fixing
app.listen() to correctly send port:0 when no port is specified.
2016-05-03 19:00:01 +02:00
Miroslav Bajtoš bd7f2b6db1 travis: drop node@5, add node@6 2016-05-03 19:00:01 +02:00
Miroslav Bajtoš c2ad201bf6 Merge pull request #2282 from strongloop/feature/remove-auto-attach-2.x
Clean up unit-tests - use local registry [2.x]
2016-05-03 16:10:45 +02:00
Miroslav Bajtoš 6c59390754 Disable DEBUG output for eslint on Jenkins CI 2016-05-03 14:40:19 +02:00
Miroslav Bajtoš 53cd449c9c test/rest.middleware: use local registry
Rework tests in `test/rest.middleware.test.js` to not depend
on `app.autoAttach()` and global shared registry of Models. Instead,
each tests creates a fresh app instance with a new in-memory datasource
and a new set of Models.
2016-05-03 14:40:17 +02:00
Miroslav Bajtoš cae9786f0e Fix role.isOwner to support app-local registry 2016-05-03 14:39:29 +02:00
Miroslav Bajtoš 845c59eced test/user: use local registry
Rework User tests to not depend on `app.autoAttach()` and global shared
registry of Models. Instead, each tests creates a fresh app instance
with a new in-memory datasource and a new set of Models.
2016-05-03 14:39:06 +02:00
Miroslav Bajtoš 6d738690c8 2.28.0
* Add new feature to emit a `remoteMethodDisabled` event when disabling a remote method. (Supasate Choochaisri)
 * Fix typo in Model.nestRemoting (Tim Needham)
 * Allow built-in token middleware to run repeatedly (Benjamin Kröger)
 * Improve error message on connector init error (Miroslav Bajtoš)
 * application: correct spelling of "cannont" (Sam Roberts)
2016-05-02 13:00:09 +02:00
Simon Ho 091c71df23 Merge pull request #2271 from strongloop/backport-emit-disable-remote-method-event
BACKPORT Add new feature to emit a `remoteMethodDisabled` event when disabling
2016-04-29 19:48:57 -07:00
Supasate Choochaisri 2498c02f31 Add new feature to emit a `remoteMethodDisabled` event when disabling a remote method.
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-04-29 16:29:50 -07:00
Tim Needham 1ea1cd612a Fix typo in Model.nestRemoting
Prevent apps from crashing when using `Model.nestRemoting` without
`{ hooks: false }` option.

Note that it is not possible to reproduce this bug using our current
Mocha test suite, because other tests modify the global state in such
way that the bug no longer occurs.

[back-port of #2245]
2016-04-20 09:35:10 +02:00
Miroslav Bajtoš 4678cb4b7c Merge pull request #2204 from strongloop/backport/pr2108
Allow built-in token middleware to run repeatedly [back-port to 2.x]
2016-04-06 16:06:38 +02:00
Benjamin Kröger e4b275243f Allow built-in token middleware to run repeatedly
Add two new options:

  - When `enableDoublecheck` is true, the middleware will run
    even if a previous middleware has already set `req.accessToken`
    (possibly to `null` for anonymous requests)

  - When `overwriteExistingToken` is true (and `enableDoublecheck` too),
    the middleware will overwrite `req.accessToken` set by a previous
    middleware instances.
2016-04-06 15:47:32 +02:00
Miroslav Bajtoš 50e3578992 Improve error message on connector init error
[back-port of pull request #2105]
2016-03-02 13:19:20 +01:00
Sam Roberts a4c643e890 application: correct spelling of "cannont"
[back-port of pull request #2088]
2016-02-19 13:12:51 +01:00
Miroslav Bajtoš 97f376c239 2.27.0
* Remove sl-blip from dependency (Candy)
 * Fix race condition in replication tests (Miroslav Bajtoš)
 * test: remove errant console.log from test (Ryan Graham)
 * Promisify Model Change (Jue Hou)
 * Fix race condition in error handler test (Miroslav Bajtoš)
 * Travis: drop iojs, add v4.x and v5.x (Miroslav Bajtoš)
 * Correct JSDoc findOrCreate() callback in PersistedModel (Miroslav Bajtoš)
 * Hide verificationToken (Miroslav Bajtoš)
 * test: use ephemeral port for e2e server (Ryan Graham)
 * test: fail on error instead of crash (Ryan Graham)
 * ensure app is booted before integration tests (Ryan Graham)
 * Checkpoint speedup (Amir Jafarian)
 * Pull in API doc fix from PR into master #1910 (crandmck)
2016-02-19 10:29:24 +01:00
Candy 70aec01e84 Remove sl-blip from dependency 2016-02-18 18:02:00 +01:00