Граф коммитов

3100 Коммитов

Автор SHA1 Сообщение Дата
vladikoff 9625b98f60 Release v1.119.7 2018-09-07 18:01:26 -04:00
vladikoff f9f70a4adb fix(push): temporary fix the callback validation 2018-09-07 18:01:11 -04:00
vladikoff c203769372 Release v1.119.6 2018-09-07 16:33:30 -04:00
Vlad Filippov fb69924a3d
Merge pull request #2616 from mozilla/train-119-url-ports-stomlinson
fix(validation): allow https pushCallback URLs that contain :443
2018-09-07 16:32:36 -04:00
vladikoff c505991c7e fix(tests): comment out flaky tests 2018-09-07 16:20:40 -04:00
vladikoff c50acaff75 fix(tests): comment out flaky tests 2018-09-07 15:56:51 -04:00
Shane Tomlinson e41522f732
fix(validation): allow https pushCallback URLs that contain :443 2018-09-07 20:28:13 +01:00
Vlad Filippov f73a063ffc
Merge pull request #2613 from mozilla/train-119-dependency-pinning
fix(deps): Pin auth-db-mysql dependency for train-119
2018-09-06 21:00:09 -04:00
Ryan Kelly c8e84ae991
Release v1.119.5 2018-09-07 10:46:17 +10:00
Ryan Kelly 3c09697bdf
fix(deps): Pin auth-db-mysql dependency for train-119 2018-09-07 10:34:44 +10:00
Vlad Filippov 45582decf2
Merge pull request #2612 from mozilla/train-119-push-validation-fix
Fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1489294
2018-09-06 18:00:17 -04:00
vladikoff f90d980a69 Release v1.119.4 2018-09-06 17:49:05 -04:00
vladikoff f258387f0c fix(tests): add port test 2018-09-06 17:47:45 -04:00
vladikoff fd751b273a fix(tests): adjust geodb city for now 2018-09-06 17:25:30 -04:00
vladikoff 8a9859f4e0 fix(push): support port numbers in push urls 2018-09-06 17:15:45 -04:00
vladikoff f39ee77367 Release v1.119.3 2018-08-23 15:04:08 -04:00
Vlad Filippov cd5b5cd24f
fix(mysql): fix pushbox mysql (#2597) r=@philbooth 2018-08-23 15:02:17 -04:00
vladikoff 8b6141e052 chore(docs): changelog updates 2018-08-23 12:07:41 -04:00
vladikoff 9417c2ad1c fix(npm): new shrinkwrap 2018-08-23 11:55:14 -04:00
vladikoff 2b0748be10 Release v1.119.2 2018-08-23 11:24:41 -04:00
Ryan Kelly 85889ee917 fix(devices): Add feature-flag for the "device commands" functionality. (#2591) r=@vladikoff 2018-08-23 11:23:45 -04:00
vladikoff df63b963c4 Release v1.119.1 2018-08-21 19:22:21 -04:00
Vlad Filippov 326881b3f9
fix(devices): disable cached devices in account destroy (#2588) r=@philbooth
Fixes https://github.com/mozilla/fxa-content-server/issues/6467
2018-08-21 19:21:20 -04:00
Phil Booth 45e174d487
Release v1.119.0 2018-08-21 15:32:02 +01:00
Phil Booth 08f5ee9070
fix(tests): temporarily disable deviceCommands assertions 2018-08-21 15:31:56 +01:00
Phil Booth 842aae4e59
chore(package): update shrinkwrap 2018-08-21 15:14:58 +01:00
Phil Booth 325a3e9569
Merge pull request #2585 from mozilla/pb/2533
https://github.com/mozilla/fxa-auth-server/pull/2585
r=rfk
2018-08-21 12:39:09 +01:00
Phil Booth 0bce944b5f
refactor(devices): shortcut redundant tests for spurious device updates
As soon as one property is found to be different, we know an update is
not spurious. At that point any further testing is redundant, so we can
return from isSpuriousUpdate early and save ourselves the extra work to
continue testing other properties.
2018-08-21 12:28:14 +01:00
Phil Booth 71f8c18e2d
fix(devices): treat matching device commands as spurious updates
The logic in devices.isSpuriousUpdate was incorrectly failing to negate
a boolean condition, meaning that matching device commands were being
treated as non-spurious. This change fixes that so they are deemed
spurious instead.
2018-08-21 12:28:14 +01:00
Phil Booth bebee792ce
refactor(devices): extract and write tests for devices.isSpuriousUpdate 2018-08-21 12:28:13 +01:00
Phil Booth eedf3212dc
fix(devices): check token.deviceAvailableCommands before dereferencing 2018-08-21 06:45:03 +01:00
Phil Booth 5a2bf9bbac
Merge pull request #2584 from mozilla/pb/2521
https://github.com/mozilla/fxa-auth-server/pull/2584
r=shane-tomlinson
2018-08-20 12:02:40 +01:00
Phil Booth fedaa2307e
fix(scripts): fix the broken api docs generator script
Fixes #2521.

Two things were wrong with it:

1. We started using object destructuring, which necessitates a version
   bump for the JS version in Acorn.

2. The upgrade to Hapi 17 changed the property name for route settings
   from `config` to `options`, so the script needed the same.
2018-08-20 11:40:44 +01:00
Phil Booth 2cb7642d42
Merge pull request #2581 from mozilla/pb/use-cached-devices
https://github.com/mozilla/fxa-auth-server/pull/2581
r=rfk
2018-08-20 07:22:05 +01:00
Phil Booth 3015a40669
fix(devices): used cached devices property during requests 2018-08-18 15:52:32 +01:00
Phil Booth 29cc9110a7
Merge pull request #2578 from mozilla/pb/2568
https://github.com/mozilla/fxa-auth-server/pull/2578
r=rfk
2018-08-17 12:15:56 +01:00
Phil Booth 8dee2e8551
refactor(validation): simplify the validation logic for email addresses
There was a lot of stuff going on in the validation logic that could be
replaced by one call to `RegExp.test`. And some of it was quite weird,
like running a regex individually on each character in a string instead
of running one regex on the whole string. Regexes are fast but doing it
like that slows them down unnecessarily because you're paying for the
initialisation cost on every iteration.

This replaces all that with just two regexes that run over the whole
string, one for the user part and the other for the domain part. We can
do this refactoring confidently because of the test coverage added in
eaf36151fa (before that commit, this code
had no tests at all).

The regexes are based on what we use in fxa-email-service. Ideally we'd
just use the fxa-email-service one directly, but it relies on unicode
features that are still hidden behind a flag in our production version
of Node.js (`--harmony_regexp_property`). When we have proper unicode
regex support, we should replace these with the fxa-email-service regex
and ditch the punycode step.
2018-08-17 11:18:16 +01:00
Phil Booth cfb97043f9
fix(validation): don't treat `+-\/` as a character range in email regex 2018-08-17 11:15:39 +01:00
Phil Booth a872363c94
fix(validation): validate length of user and domain email address parts
Fixes #2568.

The maximum length for the user part of an email address is 64 and the
maximum for the domain part is 255.
2018-08-17 11:14:45 +01:00
Phil Booth eaf36151fa
feat(tests): write unit tests for email address validation 2018-08-17 11:13:28 +01:00
Phil Booth c3255c0fc1
Merge pull request #2576 from mozilla/pb/email-config-improvements
https://github.com/mozilla/fxa-auth-server/pull/2576
r=shane-tomlinson
2018-08-15 14:37:24 +01:00
Phil Booth 14694e441e
fix(scripts): improve regex validation for email-config script 2018-08-15 09:48:59 +01:00
Phil Booth 807e4ac75c
fix(scripts): stop email-config script logging config to stdout 2018-08-15 09:18:15 +01:00
Phil Booth c21f6fdd52
Merge pull request #2574 from mozilla/pb/2497
feat(email): write live email-sending config to redis
r=vbudhram
2018-08-10 19:34:20 +01:00
Phil Booth cd5f341287
fix(tests): increase timeout on selectEmailService integration tests 2018-08-10 18:33:22 +01:00
Phil Booth 122ce3baa0
feat(scripts): validate inputs in the email-config script 2018-08-10 17:42:17 +01:00
Phil Booth c6ad40270a
feat(email): write live email-sending config to redis 2018-08-10 15:19:51 +01:00
Vlad Filippov 4998f2b2ba
fix(server): do not return customs.flag in the destroy route (#2573)
Fixes #2563
2018-08-10 08:34:28 -04:00
vladikoff 9e20e694a7 fix(tests): adjust async tests 2018-08-09 16:47:16 -04:00
Vlad Filippov 577237d5de feat(email): change the email service errno values to numbers
Fixes #2569
2018-08-09 16:47:16 -04:00