<?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 Re: Download Documenti Java Code - Alfresco + Jira + CAS in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/download-documenti-java-code-alfresco-jira-cas/m-p/63646#M39958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anche a me servirebbe una mano su questo argomento.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Come a MrBall anche a me l' inputStream risulta nullo e il valore del ticket è inconsistente.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Grazie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Oct 2015 10:28:57 GMT</pubDate>
    <dc:creator>superdeder</dc:creator>
    <dc:date>2015-10-23T10:28:57Z</dc:date>
    <item>
      <title>Download Documenti Java Code - Alfresco + Jira + CAS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/download-documenti-java-code-alfresco-jira-cas/m-p/63645#M39957</link>
      <description>Salve a tutti,sto cercando di sviluppare un download massivo di documenti da Alfresco attraverso un servizio Rest sviluppato in Java.La funzione deve restituire un file zip con dentro tutti i documenti.Il problema è che l'infrastruttura non mi permette di prendere il file anche se l'utente corrente</description>
      <pubDate>Fri, 23 Oct 2015 08:49:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/download-documenti-java-code-alfresco-jira-cas/m-p/63645#M39957</guid>
      <dc:creator>mrball</dc:creator>
      <dc:date>2015-10-23T08:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Download Documenti Java Code - Alfresco + Jira + CAS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/download-documenti-java-code-alfresco-jira-cas/m-p/63646#M39958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anche a me servirebbe una mano su questo argomento.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Come a MrBall anche a me l' inputStream risulta nullo e il valore del ticket è inconsistente.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Grazie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 10:28:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/download-documenti-java-code-alfresco-jira-cas/m-p/63646#M39958</guid>
      <dc:creator>superdeder</dc:creator>
      <dc:date>2015-10-23T10:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Download Documenti Java Code - Alfresco + Jira + CAS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/download-documenti-java-code-alfresco-jira-cas/m-p/63647#M39959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ciao,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;premetto che non sono esperto di CAS… quindi perdonami se dico inesattezze.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quello che tu stai tentando di fare è chiamare in modo diretto l'API REST di Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perchè questo funzioni, bisogna passare come parametro un TICKET di Alfresco (oppure se usi la basic auth, passare in modo diretto username e password… ma non mi sembra questo il tuo caso).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Normalmente, per ottenere un ticket puoi fare una chiamata all'API &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/api/login?u=" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/login?u=&lt;/A&gt;&amp;lt;user&amp;gt;&amp;amp;pw=&amp;lt;pass&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;da cui otterrai (in XML o JSON a seconda che la tua chiamata sia GET o POST) una risposta che contiene un TICKET fatto più o meno in questo modo:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;TICKET_2cd4027a1f241d7332f87183cc2f3e0414bee8ca&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Questo ticket lo dovrai aggiungere come parametro di nome "alf_ticket" alla tua chiamata per il download.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nel tuo caso, dovresti recuperare il ticket di Alfresco da CAS… ma questo non so se sia possibile (sembrerebbe di no da quello che leggo nel paragrafo &lt;/SPAN&gt;&lt;STRONG&gt;Issues &amp;gt; other servlet&lt;/STRONG&gt;&lt;SPAN&gt; della pagina del wiki su &lt;/SPAN&gt;&lt;A href="https://wiki.alfresco.com/wiki/Central_Authentication_Service_Configuration#Configuring_SSO_between_CAS_and_Alfresco" rel="nofollow noopener noreferrer"&gt;Configuring SSO between CAS and Alfresco&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In alternativa, come ho visto fare in alcuni casi, puoi creare un utente di servizio che userai solo per le chiamate ai webscript. Valuta bene però se questo è accettabile ai fini della sicurezza della tua applicazione.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 14:15:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/download-documenti-java-code-alfresco-jira-cas/m-p/63647#M39959</guid>
      <dc:creator>davidciamberlan</dc:creator>
      <dc:date>2015-10-23T14:15:27Z</dc:date>
    </item>
  </channel>
</rss>

