<?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 [Resolved] How to open a file from Alfresco without authenti in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/resolved-how-to-open-a-file-from-alfresco-without-authenti/m-p/179521#M132651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a hyperlink in my jsp page. when i click on this link, it opens a new window and connect to the alfresco server. I want to open a file directly which exists on Alfresco server. For achiveing this functionality, I am using URL Addressability.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i can open the file directly from alfresco server . Before showing this file, it's showing alfrseco web client screen for authentication.after entering username &amp;amp; password only, it is showing the file.I want to open this file without alfrseco web client authentication screen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To overcome this authentication screen problem, i am passing ticket id with the URL in the below code but still it is not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See the error after the code–&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;public String searchAndDownload(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WebServiceFactory.setEndpointAddress("&lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/api" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AuthenticationUtils.startSession(USERNAME, PASSWORD);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—————————————————————&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;————————————————————–&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ticket = AuthenticationUtils.getTicket();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—————————————————-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—————————————————&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String url = "&lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/d/d/workspace/SpacesStore/%22+nodeId+%22/%22+file+%22?ticket=%22+ticket" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/d/d/workspace/SpacesStore/'+nodeId+'/'+file+'?ticket='+ticket&lt;/A&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;return url;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Error&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; System Error&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.IllegalStateException: Cannot create a session after the response has been committed&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Show Details&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.IllegalStateException: Cannot create a session after the response has been committed &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.connector.Request.doGetSession(Request.java:2214) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.connector.Request.getSession(Request.java:2024) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:831) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:842) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.alfresco.web.app.servlet.BaseServlet.redirectToLoginPage(BaseServlet.java:187) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.alfresco.web.app.servlet.BaseServlet.servletAuthenticate(BaseServlet.java:152) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.alfresco.web.app.servlet.BaseServlet.servletAuthenticate(BaseServlet.java:117) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:100) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.lang.Thread.run(Thread.java:595) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Kindly help me.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nishant&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2009 08:40:12 GMT</pubDate>
    <dc:creator>unknown-user</dc:creator>
    <dc:date>2009-01-13T08:40:12Z</dc:date>
    <item>
      <title>[Resolved] How to open a file from Alfresco without authenti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resolved-how-to-open-a-file-from-alfresco-without-authenti/m-p/179521#M132651</link>
      <description>Hi AllI am using a hyperlink in my jsp page. when i click on this link, it opens a new window and connect to the alfresco server. I want to open a file directly which exists on Alfresco server. For achiveing this functionality, I am using URL Addressability.Now i can open the file directly from alfr</description>
      <pubDate>Tue, 13 Jan 2009 08:40:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resolved-how-to-open-a-file-from-alfresco-without-authenti/m-p/179521#M132651</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2009-01-13T08:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: [Resolved] How to open a file from Alfresco without authenti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resolved-how-to-open-a-file-from-alfresco-without-authenti/m-p/179522#M132652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now If i pass ticket id with URL then it is showing authentication screen and then it is not taking "admin" as a username and "admin" as a password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if i use URL without ticket means like &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/d/d/workspace/SpacesStore/%22+nodeId+%22/%22+file" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/d/d/workspace/SpacesStore/'+nodeId+'/'+file&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;then only it takes username &amp;amp; password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nishant&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 10:12:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resolved-how-to-open-a-file-from-alfresco-without-authenti/m-p/179522#M132652</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2009-01-13T10:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: [Resolved] How to open a file from Alfresco without authenti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resolved-how-to-open-a-file-from-alfresco-without-authenti/m-p/179523#M132653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have resolved this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actualy this was my coding mistake. I would like to help If anybuddy is facing this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nishant&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 04:37:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resolved-how-to-open-a-file-from-alfresco-without-authenti/m-p/179523#M132653</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2009-01-28T04:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: [Resolved] How to open a file from Alfresco without authenti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/resolved-how-to-open-a-file-from-alfresco-without-authenti/m-p/179524#M132654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Nishant,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need help regarding the same kind of requirement. I have one button in my webapplication from that button i need to access Alfresco Application without authentication it suppose to be land search screen..I need help regarding this…please suggest me how can we do that….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how we can generate Search URL based on the Ticket No ##………ASAP…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anil Kumar.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Oct 2012 05:59:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/resolved-how-to-open-a-file-from-alfresco-without-authenti/m-p/179524#M132654</guid>
      <dc:creator>anil585974</dc:creator>
      <dc:date>2012-10-21T05:59:29Z</dc:date>
    </item>
  </channel>
</rss>

