Commit Graph

7435 Commits

Author SHA1 Message Date
Emily Stark
bfeabbc5b0 Merge branch 'master' into devel 2014-05-12 17:15:42 -07:00
Emily Stark
c8bfff8959 Merge branch 'release-0.8.1.2' 2014-05-12 17:15:08 -07:00
Emily Stark
1b1892fadd Update examples to 0.8.1.2 2014-05-12 17:14:40 -07:00
Emily Stark
1b1a4d7c25 Update docs to 0.8.1.2 2014-05-12 17:09:41 -07:00
Emily Stark
5dc48badef Update banner and notices 2014-05-12 17:01:34 -07:00
Emily Stark
758a2d260e Add an XXX about only_credential_secret_for_test 2014-05-12 13:53:38 -07:00
Avital Oliver
ec170b7c3c docs: turn off appcache on safari
Turns out AppCache on Safari 7 is totally broken (see
http://stackoverflow.com/questions/22888945/safari-7-application-cache-does-not-work).
This, combined with our "reload if you can't load CSS or JS" strategy for
multi-server deploy causes infinite reloads in some cases.

Hopefully this will resolve the sporadic complaints we get
from some users about infinite reloads.
2014-05-09 18:34:39 -07:00
Avital Oliver
5fe931056b Better error when releasing an unbuilt git sha 2014-05-09 16:30:23 -07:00
Emily Stark
ac3086cdb5 Make a History sentence more sentence-y 2014-05-09 14:54:38 -07:00
Emily Stark
cdbc135e7c Update History.md release/0.8.1.2 release/0.8.1.2-rc1 2014-05-09 14:23:36 -07:00
Emily Stark
247ab62ebb Unregister sessions from server when their heartbeats time out.
Conflicts:
	History.md
2014-05-09 14:21:06 -07:00
Emily Stark
0fa591bc5f Add credential secret argument to retrieveCredential functions.
Fixes #2118.
2014-05-09 14:18:11 -07:00
David Glasser
32496511bb Fix 0.8.1 regression in ROOT_URL with path
Fixes #2109.
2014-05-09 14:17:47 -07:00
Emily Stark
4928ed61d1 Unregister sessions from server when their heartbeats time out. 2014-05-09 14:14:22 -07:00
David Glasser
eac8f504b1 Merge branch 'pr/2117' into devel
Fixes #2117.
2014-05-08 18:01:23 -07:00
David Glasser
d6e53c0428 cleanup HTML 2014-05-08 18:00:35 -07:00
Cangit
829325928e Update commandline.html
Removed deprecated --password command from docs. Added info on new practices.
2014-05-08 17:58:41 -07:00
David Glasser
1cfd91aaea Stricter validation of connect messages
Previously, you could leave out the "support" field (or claim to not
support the version you were proposing) which would mean your connection
would succeed iff the proposed version is the server's favorite
version. This led to (eg) ObjectiveDDP accidentally writing a client
that stopped working when servers started preferring pre2 over pre1. By
making this a blatant error, DDP client libraries are more likely to
be written in a way that works with version negotiation.

Also, remove the delay in sending connect failure messages, which was
intended to avoid connect storms from clients that are by now 1.5 years
old.

Fixes #2125.
2014-05-08 17:27:43 -07:00
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