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
最满意答案
我想找到,如果它是国家得到拉特和长,如果它的城市得到拉特市长,如果它是省得到拉特省和长省。
除了检查所有三个模型中记录的存在时,我没有别的办法,如下所示,如果满足条件,则获得
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: 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
andlong
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 ...
-
rails连接表问题(rails join table issue)[2022-05-11]
更改 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 ...
-
Rails从连接表中获取值(Rails get value from join table)[2021-10-23]
我想找到,如果它是国家得到拉特和长,如果它的城市得到拉特市长,如果它是省得到拉特省和长省。 除了检查所有三个模型中记录的存在时,我没有别的办法,如下所示,如果满足条件,则获得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?