Commit Graph

7417 Commits

Author SHA1 Message Date
Avital Oliver
5358af451c selftest: return null when reading a file that doesn't exist release/test-foo release/test-fooz release/test-fooz2 2014-05-08 16:21:05 -07:00
Emily Stark
3c6b0ab73e Merge branch 'content-type-headers' into devel 2014-05-08 12:16:07 -07:00
Emily Stark
fe52538881 Add Content-Type to history 2014-05-08 12:14:30 -07:00
Emily Stark
c044786e2f nim, glasser comments 2014-05-08 12:12:45 -07:00
Emily Stark
a8673d01cd Set X-Content-Type-Options in browser-policy-content 2014-05-08 12:12:45 -07:00
Emily Stark
4afa54ca5a Set Content-Type header on js and css resources. 2014-05-08 12:12:45 -07:00
David Glasser
27d9959326 Add missing amplify -> jquery dependency
Somehow this worked in 0.7.2 but starting at 0.8.0 amplify has a
ReferenceError.

Fixes #2113.
2014-05-07 18:04:29 -07:00
Felix Rabe
819bdb31b0 Looks like a typo (untested minor change) 2014-05-07 17:55:08 -07:00
Felix Rabe
d22a10cf1c Typo 2014-05-07 17:55:07 -07:00
Felix Rabe
3431c66c16 Fix occurrences of "cd dirname $0"
They are not safe for spaces in paths. There might be other places to look for trouble.

I've run the following command to produce this commit: (on OS X, copy-and-pasting the below exactly)

    find . -type f -name '*.sh' -print0  |  # Find all .sh files
        xargs -0 fgrep -H -- '`'         |  # See all places with backticks in them
        fgrep 'cd `dirname $0'           |  # I deemed these problematic (variable assignments are safe)
        cut -d ':' -f 1                  |  # Take the <file> from <file>:<line> produced by "grep -H"
        tr '\n' '\0'                     |  # Also here, spaces can be problematic - always do "xargs -0"!
        xargs -0 -- sed -i '' 's/cd `dirname $0`/cd "`dirname "$0"`"/g'

The significance of adding the two levels of "'s can be verified by running the following in your Terminal:

    $ node -e 'console.log(process.argv.splice(1))' -- `echo 1   2`
    [ '1', '2' ]

    $ node -e 'console.log(process.argv.splice(1))' -- "`echo 1   2`"
    [ '1 2' ]

    $ node -e 'console.log(process.argv.splice(1))' -- "`echo "1   2"`"
    [ '1   2' ]
2014-05-07 17:51:09 -07:00
David Glasser
50b7f12922 Fix 0.8.1 regression in ROOT_URL with path
Fixes #2109.
2014-05-07 17:46:08 -07:00
David Glasser
08cf1e0974 shrinkwrap update from 314c8a1
Apparently not passing --force to npm install also allows us to do a
better job of not bundling duplicate npm packages.
2014-05-07 17:31:29 -07:00
Avital Oliver
e5b5858203 Fix flakiness in "defer in rendered callback" test
It was flaky before because template rendered callbacks get called
after flush time, but not if the template got destroyed in the meanwhile.

The way this test was written, if the client managed to respond to the server
rejecting the method before the client's flush cycle, the rendered callback
would never fire. Thus it would hang, since that callback was wrapped
in an expect.

Now we define a method on the client only, which makes it run as a stub
without the server rejecting the method (ever).
2014-05-06 20:24:57 -07:00
David Glasser
74bcb916b4 Doc and history updates for 4777e64336 2014-05-06 14:11:40 -07:00
Emily Stark
0c479a238b Add credential secret argument to retrieveCredential functions.
Fixes #2118.
2014-05-05 20:51:15 -07:00
David Glasser
f2e2a781cc Update Node to 0.10.28 which includes our npm fix 2014-05-02 10:59:37 -07:00
David Glasser
9187c554c0 Ban inserting EJSON custom types as documents
Follow-up to 63b3119; further addresses #2095.

There were a few problems here:

- We didn't check that the argument to insert was a document.  (EJSON
  custom types don't count as documents, because they don't have _ids!)

- The check to see if something coming from the database was an EJSON
  custom type didn't match the check in ejson.js (specifically, it was
  missing size===2). This made it sort of look like you could use EJSON
  custom types as top-level documents, until a change in the MongoDB
  driver made made that coincidental almost-working code stop working.

- The replaceNames function wasn't documented as only taking pure JSON,
  so it wasn't obvious that "it throws when there's a Buffer" was a bug
  in the caller rather than a bug in replaceNames.

This should all be resolved now.  Use cases like CollectionFS which were
mislead by these bugs into believing that an EJSON custom type could be
a document should move their custom type into a field.
2014-05-01 13:57:35 -07:00
Emily Stark
de9188f1e8 Merge branch 'master' into devel
Conflicts:
	History.md
	packages/minifiers/urlrewriting-tests.js
2014-05-01 12:39:33 -07:00
Emily Stark
399629e941 Merge branch 'release-0.8.1.1'
The large number of conflicts is because release-0.8.1.1 was branched
off of release/0.8.1 instead of master.

Conflicts:
	History.md
	docs/.meteor/release
	docs/lib/release-override.js
	examples/clock/.meteor/release
	examples/leaderboard/.meteor/release
	examples/parties/.meteor/release
	examples/todos/.meteor/release
	examples/wordplay/.meteor/release
	scripts/admin/banner.txt
	scripts/admin/notices.json
2014-05-01 12:37:41 -07:00
Emily Stark
53c4a32d7e Update docs and examples 2014-05-01 12:31:27 -07:00
Emily Stark
629423d514 Update banner and notices release/0.8.1.1 release/0.8.1.1-rc6 2014-05-01 12:17:24 -07:00
Emily Stark
d59f026363 Remove stray console.log in test 2014-05-01 12:17:06 -07:00
Emily Stark
63b3119127 Treat Buffers as Arrays when rewriting MongoDB atoms.
mongodb 1.4.0-rc9 has a `binId` field of type Buffer on ObjectIDs, which
caused Meteor to crash when retrieving a document that was made up of
just an EJSON user-defined type. (Which should not necessarily be
supported, but `replaceNames` should probably treat Buffers as Arrays
regardless.)

Fixes #2095.
release/0.8.1.1-rc5
2014-05-01 11:49:07 -07:00
Emily Stark
56050500e4 Update History 2014-05-01 09:51:55 -07:00
David Glasser
1d4004650f Follow-up to 4777e64: fix client-specified _id
This was a regression in 0.8.1 which caused client-specified `_id` to
always be ignored for collections with at least one allow/deny rule.

Fixes #2097. Fixes #2099.
release/0.8.1.1-rc4
2014-05-01 00:17:11 -07:00
Nick Martin
af7ed1edc0 History for #2088 2014-04-30 23:34:47 -07:00
Andrew Wilcox
482d9a78d7 Fix serializing server tests.
`Tinytest.add` is now implemented in terms of `Tinytest.addAsync`, and
the old `async` flag removed.
2014-04-30 23:32:24 -07:00
Andrew Wilcox
853aa3f1d5 Run server tests one at a time. 2014-04-30 23:32:24 -07:00
Slava Kim
d1b58e57dd Fix a typo in test descr 2014-04-30 23:29:23 -07:00
David Glasser
5e0845a436 Follow-up to 4777e64: fix client-specified _id
This was a regression in 0.8.1 which caused client-specified `_id` to
always be ignored for collections with at least one allow/deny rule.

Fixes #2097. Fixes #2099.
2014-04-30 23:01:53 -07:00
David Glasser
b48266bf74 Merge branch 'fix-npm-cache' into devel 2014-04-30 18:04:02 -07:00
David Glasser
e0fcd2c2ed update regexp for new version of npm
also, use quotemeta where necessary
2014-04-30 18:03:54 -07:00
David Glasser
000c71ec30 A better version of our patch
However, the better version involves taking some changes from a version
of npm not yet released with Node.
2014-04-30 18:03:53 -07:00
David Glasser
314c8a1a34 We no longer need to pass --force to npm install
(Also, make a test assertion useful: assert.equal's default truncation
is horrible.)
2014-04-30 18:03:53 -07:00
David Glasser
94074c0dcd new dev bundle: with npm/npm#5137
We should be able to remove our "npm install --force" workaround after
this.
2014-04-30 18:03:53 -07:00
David Glasser
5137250aee Improve 'meteor mongo' error message
Fixes #1256
2014-04-30 17:35:04 -07:00
Emily Stark
673a285dfc Allow undefined values in Collection.find options check.
At some point we might want to just make `Match.Optional` accept
explicit undefined values in objects, but that will take a little more
thought.
release/0.8.1.1-rc2
2014-04-30 15:53:59 -07:00
Emily Stark
671e526bc2 Fix test for #2093 release/0.8.1.1-rc1 2014-04-30 14:45:59 -07:00
Emily Stark
09f7cff076 Fix test for #2093 2014-04-30 14:45:20 -07:00
Avital Oliver
05c7a1662c Test for #2093 2014-04-30 14:32:36 -07:00
Avital Oliver
87510807e8 Try to fix #2093 2014-04-30 14:32:24 -07:00
Avital Oliver
e117e70255 Test for #2093 2014-04-30 14:03:36 -07:00
Avital Oliver
7c813691f2 Try to fix #2093 release/fix-2093 release/test-fix-2093 release/fix-2093-1 2014-04-30 11:55:45 -07:00
Avital Oliver
af28185676 Merge branch 'master' into devel 2014-04-30 11:49:50 -07:00
Avital Oliver
c67ce10722 Merge branch 'release-0.8.1' 2014-04-30 11:49:23 -07:00
Avital Oliver
965e3f6dec Add v0.8.1 to History.md 2014-04-30 11:46:12 -07:00
Emily Stark
b37fd2af7e Merge branch 'master' into devel 2014-04-30 11:03:19 -07:00
Emily Stark
f4044c2fde Merge branch 'release-0.8.1' 2014-04-30 11:02:42 -07:00
Emily Stark
532e9f32a8 Update docs and examples 2014-04-30 11:02:18 -07:00
Emily Stark
4b6d88828e tweak notices 2014-04-30 10:47:37 -07:00