sapling/eden/fs/service
Adam Simpkins 5eb692d345 update EdenServer::getMount() to throw on error
Summary:
Previously EdenServer::getMount() returned a null pointer if the path did not
refer to a known mount point.  However, most of the thrift APIs using this
method never checked if the return value was null, which could allow any thrift
client to crash edenfs.

This updates getMount() to throw if the path is not found, and never return
null.

Reviewed By: bolinfest

Differential Revision: D4760527

fbshipit-source-id: 6cd9a1e3bc0a0a220d7f5fa518d497d37f245eff
2017-04-03 15:50:32 -07:00
..
oss update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
__init__.py update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
client.py fix a variety of lint issues 2017-01-23 18:03:09 -08:00
DEFS implement eden->watchman subscriptions 2017-03-21 13:35:20 -07:00
eden.thrift implement "hg status" using EdenMount::diff() 2017-03-30 21:35:00 -07:00
EdenError.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
EdenError.h update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
EdenServer.cpp update EdenServer::getMount() to throw on error 2017-04-03 15:50:32 -07:00
EdenServer.h update EdenServer::getMount() to throw on error 2017-04-03 15:50:32 -07:00
EdenServiceHandler.cpp update EdenServer::getMount() to throw on error 2017-04-03 15:50:32 -07:00
EdenServiceHandler.h implement "hg status" using EdenMount::diff() 2017-03-30 21:35:00 -07:00
GlobNode.cpp implement glob thrift method 2017-01-26 12:47:05 -08:00
GlobNode.h implement glob thrift method 2017-01-26 12:47:05 -08:00
main.cpp connect the fuse stats to fb303 2017-03-31 11:39:48 -07:00
PrettyPrinters.cpp implement "hg status" using EdenMount::diff() 2017-03-30 21:35:00 -07:00
PrettyPrinters.h implement "hg status" using EdenMount::diff() 2017-03-30 21:35:00 -07:00
streamingeden.thrift implement eden->watchman subscriptions 2017-03-21 13:35:20 -07:00
StreamingSubscriber.cpp implement eden->watchman subscriptions 2017-03-21 13:35:20 -07:00
StreamingSubscriber.h implement eden->watchman subscriptions 2017-03-21 13:35:20 -07:00
TARGETS add one more checkout unit test 2017-03-21 12:53:26 -07:00