首页 \ 问答 \ OpenCMIS无法连接到Sharepoint 2010(OpenCMIS can't connect to Sharepoint 2010)

OpenCMIS无法连接到Sharepoint 2010(OpenCMIS can't connect to Sharepoint 2010)

我们无法在客户站点使用Sharepoint 2010配置OpenCMIS。 客户端从服务器接收“401 Unauthorized Access ”消息。 我们尝试使用我们的自定义“CMIS Tester”和CMIS Workbench(版本0.5和0.10),但结果是一样的。 我们在内部环境中重现问题的唯一方法是输入错误的凭据。

我们尝试了不同的配置:

  • Atompub(http:// [sharepoint server] / _ vti_bin / cmis / rest / [repository ID]?getrepositoryinfo)
  • Web服务(http:// [sharepoint server] / _ vti_bin / CMISSoapwsdl.aspx)
  • 压缩开/关
  • 客户端压缩开/关
  • 标准认证
  • NTLM身份验证
  • 多个“标准”用户
  • Sharepoint管理员

我们没有客户的Sharepoint环境的管理权限,但客户向我们展示了OpenCMIS插件(spcmis.wsp)和CMIS Producer被激活。 我们还确认,我们尝试连接到Sharepoint的用户可以访问至少一个库和“http:// [sharepoint server] / _ vti_bin / CMISSoapwsdl.aspx”网页。

我正在寻找任何有助于确定我们从Sharepoint服务器收到401错误的原因,如果我们提供的凭据是正确的。 谢谢。


We are unable to configure OpenCMIS with Sharepoint 2010 at a customer site. The client receives a "401 Unauthorized Access" message from the server. We have tried using our custom "CMIS Tester" and the CMIS Workbench (versions 0.5 and 0.10) but the result is the same. The only way we have reproduced the issue in our internal environment is by entering the wrong credentials.

We have tried different configurations :

  • Atompub (http://[sharepoint server]/_vti_bin/cmis/rest/[repository ID]?getrepositoryinfo)
  • Web Service (http://[sharepoint server]/_vti_bin/CMISSoapwsdl.aspx)
  • Compression on/off
  • Client Compression on/off
  • Standard authentication
  • NTLM authentication
  • Multiple "standard" users
  • Sharepoint administrator

We don't have administrative privileges on the customer's Sharepoint environment but the customer showed us that the OpenCMIS plugin (spcmis.wsp) and the CMIS Producer are activated. We also confirm that the user we tried to connect to Sharepoint with had access to at least one library and the "http://[sharepoint server]/_vti_bin/CMISSoapwsdl.aspx" web page.

I'm looking for any tip that could help to identify why we are receiving the 401 error from the Sharepoint server if the credentials we are providing are correct. Thanks.


原文:https://stackoverflow.com/questions/21143415
更新时间:2023-04-25 08:04

最满意答案

我想找到,如果它是国家得到拉特和长,如果它的城市得到拉特市长,如果它是省得到拉特省和长省。

除了检查所有三个模型中记录的存在时,我没有别的办法,如下所示,如果满足条件,则获得lanlong

If Country.exists?(name: params[:name])
  Country.where(name: params[:name]).select(:lat, :long)
elsif City.exists?(name: params[:name])
  City.where(name: params[:name]).select(:lat, :long)
elsif Province.exists?(name: params[:name])
  Province.where(name: params[:name]).select(:lat, :long)
else
  #code if none of them matched the condition
end

I would like to find if it is country get lat and long, if its city get lat long of the city and if it is province get lat and long of the province.

I see no other way than checking the existence of records in all three models one at a time like below and getting lan and long if any of them satisfy the condition.

If Country.exists?(name: params[:name])
  Country.where(name: params[:name]).select(:lat, :long)
elsif City.exists?(name: params[:name])
  City.where(name: params[:name]).select(:lat, :long)
elsif Province.exists?(name: params[:name])
  Province.where(name: params[:name]).select(:lat, :long)
else
  #code if none of them matched the condition
end

相关问答

更多
  • categories_products 。 都是复数。 按照词汇顺序。 引用 : 除非通过使用join_table选项明确指定连接表的名称,否则Active Record将使用类名的词法顺序来创建名称。 因此,客户和订单模型之间的连接将给出默认连接表名称“customers_orders”,因为“c”在词汇顺序中超出了“o”。 categories_products. Both plural. In lexical order. Quote: Unless the name of the join tabl ...
  • 假设Game#player_ids返回一个现有的Player id整数数组,你应该可以这样做: Game.find_each do |game| game.player_ids.each do |player_id| game.games_players.create!(player_id: player_id) end end 但是这段代码意味着你还没有定义关系has_many :players, through: :games_players在Game模型中,因为它使用player_i ...
  • 更改 belongs_to :ecrs belongs_to :products 至 belongs_to :ecr belongs_to :product 使用属于时应使用单数版本。 Change belongs_to :ecrs belongs_to :products to belongs_to :ecr belongs_to :product The singular version should be used when using belongs to.
  • 它是标准的relational database功能。 - Rails设计在关系数据库之上(通常是MYSQL或PGSQL),这基本上意味着你可以通过使用外键引用“关联”数据: 在关系数据库的环境中,外键是一个表中唯一标识另一个表的行的字段(或字段集合) 在Rails的情况下,数据库中的“关系”由ActiveRecord维护 - 一个ORM (对象关系映射器) 。 这意味着从应用程序层,你只需要关注填充对象: @user = User.find x @user.products #-> outputs rec ...
  • 根据ActiveRecord关系,您拥有的内容是正确的。 如果您想更多地了解这个主题,我相信这是最好的来源: http : //guides.rubyonrails.org/association_basics.html 我看到的一个问题是CompaniesUsers应该是单一的形式: CompanyUser ,然后在你使用的所有情况下:companies_users使用:company_users 我在这里假设User的当前公司是指定的最后一个公司。 现在,为了以JSON格式序列化,您应该在User Ac ...
  • 好。 我发现了一些东西 class Boss < ActiveRecord::Base has_many :employments has_many :employees, -> { select('employees.*, employment.salary as salary') } :through => :employments end OK. I found something. class Boss < ActiveRecord::Base has_many :employment ...
  • 我不会建议你这样做。 你所描述的称为反规范化 。 非规范化会为许多应用程序带来问题,只有在您明确需要时才应该这样做。 为了报告目的,我通常只是将表格归一化。 你的问题并没有表明你有任何需要非规范化的需要。 相反,它显示出对“多余”表的误导,并避免了简单的连接。 重复数据的成本不仅仅是空间,还会降低性能(独特不是免费赠品)。 现代RDBMS非常善于处理连接。 我建议使用Google搜索和搜索非规范化信息。 没有金科玉律,但你的情况似乎没有什么好的理由。 如果您正在寻找性能提升,请将垃圾邮件中的ActiveRe ...
  • 我想找到,如果它是国家得到拉特和长,如果它的城市得到拉特市长,如果它是省得到拉特省和长省。 除了检查所有三个模型中记录的存在时,我没有别的办法,如下所示,如果满足条件,则获得lan和long 。 If Country.exists?(name: params[:name]) Country.where(name: params[:name]).select(:lat, :long) elsif City.exists?(name: params[:name]) City.where(name: pa ...
  • 当Rails为连接表创建关联时,它期望模型按字母顺序排列。 因为r在你之前出现,所以它创建为roles_users 。 我建议您重命名连接表,或者,您可以向两个关联添加:join_table => "users_roles" 。 When Rails creates the association for the join table it expects the models to be in alphabetical order. Since r comes before u, it creates i ...
  • 老兄,你的问题有一个完美的答案: 在轨道中使用相同型号的多对多关系? Dude there was a perfect answer to your question: Many-to-many relationship with the same model in rails?

相关文章

更多

最新问答

更多
  • 获取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的基本操作命令。。。