<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic What are the settings for connecting to Alfresco using secure browser binding url in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/what-are-the-settings-for-connecting-to-alfresco-using-secure/m-p/96953#M28415</link>
    <description>&lt;P&gt;Below is the browser binding url I am using to get connected to Alfresco&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.alfresco.xxxx.org/alfresco/api/-default-/public/cmis/versions/1.1/browser" target="_blank" rel="noopener nofollow noreferrer"&gt;https://dev.alfresco.xxxx.org/alfresco/api/-default-/public/cmis/versions/1.1/browser&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am able to get connected to repository and establish a session but when I am trying to get session.getRootFolder() or session.query() I am getting "Redirects are not supported (HTTP status code 301): Moved Permanently"&lt;/P&gt;&lt;P&gt;I am able to successfully print the below repository information:&lt;/P&gt;&lt;P&gt;Info about the first Alfresco repo [ID=-default-][name=][CMIS ver supported=1.1]&lt;BR /&gt;After getting session...Session 7f9199db-ce37-47b4-97c2-578ec51a01ac&lt;BR /&gt;repo query capability==BOTHCOMBINED&lt;/P&gt;&lt;P&gt;I tried to look the getRootFolder() method and figured that it is internally building an url and invoking get method to read information from the repository. Is it HTTPS redirecting to HTTP? Please help me figure out the issue. Are there any special setting that I have to add in the alfresco.global properties?&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;* Performs a GET on an URL, checks the response code and returns the&lt;BR /&gt;* result.&lt;BR /&gt;*/&lt;BR /&gt;protected Response read(UrlBuilder url) {&lt;BR /&gt;// make the call&lt;BR /&gt;Response resp = getHttpInvoker().invokeGET(url, session);&lt;/P&gt;&lt;P&gt;// check response code&lt;BR /&gt;if (resp.getResponseCode() != 200) {&lt;BR /&gt;throw convertStatusCode(resp.getResponseCode(), resp.getResponseMessage(), resp.getErrorContent(), null);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return resp;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jan 2020 18:18:29 GMT</pubDate>
    <dc:creator>smoparthy</dc:creator>
    <dc:date>2020-01-04T18:18:29Z</dc:date>
    <item>
      <title>What are the settings for connecting to Alfresco using secure browser binding url</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-are-the-settings-for-connecting-to-alfresco-using-secure/m-p/96953#M28415</link>
      <description>&lt;P&gt;Below is the browser binding url I am using to get connected to Alfresco&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.alfresco.xxxx.org/alfresco/api/-default-/public/cmis/versions/1.1/browser" target="_blank" rel="noopener nofollow noreferrer"&gt;https://dev.alfresco.xxxx.org/alfresco/api/-default-/public/cmis/versions/1.1/browser&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am able to get connected to repository and establish a session but when I am trying to get session.getRootFolder() or session.query() I am getting "Redirects are not supported (HTTP status code 301): Moved Permanently"&lt;/P&gt;&lt;P&gt;I am able to successfully print the below repository information:&lt;/P&gt;&lt;P&gt;Info about the first Alfresco repo [ID=-default-][name=][CMIS ver supported=1.1]&lt;BR /&gt;After getting session...Session 7f9199db-ce37-47b4-97c2-578ec51a01ac&lt;BR /&gt;repo query capability==BOTHCOMBINED&lt;/P&gt;&lt;P&gt;I tried to look the getRootFolder() method and figured that it is internally building an url and invoking get method to read information from the repository. Is it HTTPS redirecting to HTTP? Please help me figure out the issue. Are there any special setting that I have to add in the alfresco.global properties?&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;* Performs a GET on an URL, checks the response code and returns the&lt;BR /&gt;* result.&lt;BR /&gt;*/&lt;BR /&gt;protected Response read(UrlBuilder url) {&lt;BR /&gt;// make the call&lt;BR /&gt;Response resp = getHttpInvoker().invokeGET(url, session);&lt;/P&gt;&lt;P&gt;// check response code&lt;BR /&gt;if (resp.getResponseCode() != 200) {&lt;BR /&gt;throw convertStatusCode(resp.getResponseCode(), resp.getResponseMessage(), resp.getErrorContent(), null);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return resp;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 18:18:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-are-the-settings-for-connecting-to-alfresco-using-secure/m-p/96953#M28415</guid>
      <dc:creator>smoparthy</dc:creator>
      <dc:date>2020-01-04T18:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: What are the settings for connecting to Alfresco using secure browser binding url</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-are-the-settings-for-connecting-to-alfresco-using-secure/m-p/96954#M28416</link>
      <description>&lt;P&gt;Does this help at all?&amp;nbsp;&lt;A href="https://docs.alfresco.com/community/pra/1/concepts/cmis-1.1-browser-binding.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/community/pra/1/concepts/cmis-1.1-browser-binding.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There is also a post in the hub from 2017 with a similar question that might shed some insight:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/cant-establish-session-with-browser-binding/td-p/178005" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/cant-establish-session-with-browser-binding/td-p/178005&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 21:42:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-are-the-settings-for-connecting-to-alfresco-using-secure/m-p/96954#M28416</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2020-01-08T21:42:30Z</dc:date>
    </item>
  </channel>
</rss>

