使用Mongodb ObjectID作为文档ID?(Using Mongodb ObjectID as a document ID?)
我试图用mongoDB制作一个板子。
我想用ObjectID分配文档ID。
如果用户可以通过http://www.example.com/4easdf123123访问文档页面,其中“4easdf123123”是mongoDB ObjectID。
是否有任何可能的安全威胁,如果我在URL中使用并显示mongo ObjectID并将其用作文档ID?
和任何建议与mongoDB分配文件ID?
I'm trying to make a board with mongoDB.
I want to assign document ID with ObjectID.
If a user can access to a document page by http://www.example.com/4easdf123123 where "4easdf123123" is a mongoDB ObjectID.
Is there any possible security threat, If I use and show mongo ObjectID in URL and using it as a document id?
And any suggestion with assigning document ID with mongoDB?
原文:https://stackoverflow.com/questions/7072680
最满意答案
ShareCompat
是Android支持包的一部分,可在SDK Manager的Extras中找到。有关使用
ShareCompat
文档可以在Android Developer网站上找到。
ShareCompat
is part of the Android Support package, available in the Extras are of your SDK Manager.Documentation on using
ShareCompat
can be found on the Android Developer site.
相关问答
更多-
ShareCompat是Android支持包的一部分,可在SDK Manager的Extras中找到。 有关使用ShareCompat文档可以在Android Developer网站上找到。 ShareCompat is part of the Android Support package, available in the Extras are of your SDK Manager. Documentation on using ShareCompat can be found on the Andr ...
-
下载图像并使用缩放库(Download image and use Zoom library)[2022-03-22]
我知道你的问题与Volley有关,但你没有提到这是一个严格的要求。 您可以通过Facebook使用Fresco图像库开发人员,并且在该回购中他们有一个可缩放图像视图的示例: https : //github.com/facebook/fresco/blob/master/samples/zoomable/src/main/java/com /facebook/samples/zoomable/ZoomableDraweeView.java I know your question pertains to V ... -
AsyncTask一个烦恼是默认情况下回到序列化执行,它在API级别13中认真开始。当库内部使用AsyncTask时,这会变得更糟...并且自己不使用executeOnExecutor()来选择进入线程池。 我的猜测是: 您使用execute()来启动任务 ShareCompat使用execute()来启动另一个任务......然后阻塞直到第一个任务完成 解决方案要么: 自己使用executeOnExecutor()或 使用普通的Thread ,特别是如果你不需要onPostExecute()或onProg ...
-
是的, ASIHTTPRequest 。 请参阅恢复中断的下载 。 Yes, ASIHTTPRequest. See Resuming interrupted downloads.
-
Eclipse下载库为空(Eclipse Download library is empty)[2022-09-30]
这是由于我的机器无法连接到Internet。 当我使用代理将“首选项” - >“网络连接”作为“手动”时,它开始出现在用户库中。 This was due to my machine was not able to connect to Internet. When i give the Preferences->Network Connections as Manual with a proxy, then it started appearing with user libraries. -
引导程序插件/库下载(Bootstrap plugin/library download)[2022-03-23]
起初,每个人都是独角兽! Bootstrap提供了样式表和您可以像使用其他样式表一样使用的东西。 将文件放在您的网站目录中,并将它们链接到您的HTML文件中,就像任何其他样式表(或脚本等,具体取决于您使用的内容)。 然后,您可以添加课程,并将其从链接的表中拉出。 Everyone's a unicorn at first! Bootstrap provides stylesheets and stuff that you can use like any other stylesheet you've ma ... -
如果通过ASDF可以看到系统,则无法强制Quicklisp使用Quicklisp提供的版本。 删除Debian版本是最简单的选择。 如果其他东西依赖于它,那也应该被删除。 If the system is visible via ASDF, there is no way to force Quicklisp to use the Quicklisp-supplied version. Removing the Debian version is the easiest option. If somethi ...
-
每次在Android 4上,ShareCompat IntentBuilder都会崩溃(ShareCompat IntentBuilder crashing every time on Android 4)[2022-02-07]
嗯...我将你的代码粘贴到一个新的应用程序中,在4.0.3模拟器上运行它,并打开了Messenger应用程序。 这是4.0.3模拟器上唯一知道如何共享文本的应用程序。 在LogCat中有一个堆栈跟踪,其中ChooserActivity泄露了IntentReceiver ,但我没有得到你的onStop()问题。 您的代码中没有任何内容是错误的。 我的猜测是,这是您的模拟器图像设置的一些问题。 您可以尝试创建一个新的图像,确保您拥有Android SDK Manager的所有最新更新(尽管此图像可能在相当长的一 ... -
该页面是ZF课程的提案,但似乎从未完成。 无论如何,它从未成为ZF 1的一部分。 目前似乎没有任何ZF2包处理Jabber。 该提案的代码可在Google代码中找到,但自2007年以来一直没有更改,可能不完整。 与JAXL一样, xmpphp看起来像是一个很有前途的xmpp库。 还有许多其他php jabber客户端都应该与您的ZF应用程序一起使用。 That page is a proposal for a class for ZF but it doesn't appear to have ever b ...
-
如果您滚动到Firebase for iOS文档页面的底部,则有一些步骤可以在不使用CocoaPods的情况下进行安装: 如果您不想使用Cocoapods,您仍然可以通过直接导入框架来利用Firebase SDK。 下载框架SDK zip(这是一个~100MB的文件,可能需要一些时间)。 解压缩并查看要包含在项目中的框架的README文件。 在目标的构建设置中的“其他链接器设置”中添加ObjC链接器标志。 If you scroll to the bottom of the Firebase for iOS ...