首页 \ 问答 \ 使用Mongodb ObjectID作为文档ID?(Using Mongodb ObjectID as a document ID?)

使用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
更新时间:2022-09-30 12:09

最满意答案

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 ...
  • 我知道你的问题与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.
  • 这是由于我的机器无法连接到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提供了样式表和您可以像使用其他样式表一样使用的东西。 将文件放在您的网站目录中,并将它们链接到您的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 ...
  • 嗯...我将你的代码粘贴到一个新的应用程序中,在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 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。