AnsweredAssumed Answered

Problem using guest access

Question asked by lgr on Feb 3, 2006
Latest reply on May 25, 2006 by ksapenov
Hi all,

I'm trying to configure a guest access to some content on my repository.
I've added "Guest" with guest rights on the root node (and i also have configured guest access for group everyone).

I'm using Firefox. I disconnect from Alfresco, then try to access the URL. It redirects me to the login page. Then, if i connect with my admin login, Alfresco says that i'm not connected, i'm only a guest.

When i close my firefox, and reopens it with the URL, it opens the document without a login page, so i think it is due to some firefox persistence that i can't explain yet.


Anyway, it seems to work well without having to add a ?guest=true at the end of the URL. But the document was a html one. Il also works with a pdf file.

But, when i try to access some other winword .doc with the direct URL in Internet Explorer or Firefox, it delivers the document but also generates some error in Alfresco :
15:17:22,157 WARN  [springframework.util.FileCopyUtils] Could not close OutputStream
ClientAbortException:  java.net.SocketException: Broken pipe
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
        at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)
        at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:278)
        at org.apache.catalina.connector.CoyoteOutputStream.close(CoyoteOutputStream.java:91)
        at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:132)
        at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:328)
        at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:199)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
15:17:22,159 ERROR [[localhost].[/alfresco].[downloadContent]] "Servlet.service()" pour la servlet downloadContent a généré une exception
org.alfresco.error.AlfrescoRuntimeException: Error during download content servlet processing: Failed to copy content to output stream:
   accessor: ContentAccessor[ contentUrl=store://2006/1/8/1d7349df-7ff9-11da-a5c4-47c907178674.bin, mimetype=application/octet-stream, size=314368, encoding=UTF-8]
        at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to copy content to output stream:
   accessor: ContentAccessor[ contentUrl=store://2006/1/8/1d7349df-7ff9-11da-a5c4-47c907178674.bin, mimetype=application/octet-stream, size=314368, encoding=UTF-8]
        at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:333)
        at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:199)
        … 16 more
Caused by: ClientAbortException:  java.net.SocketException: Connection reset
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
        at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
        at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:398)
        at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381)
        at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:76)
        at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:118)
        at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:328)
        … 17 more

So, i've got 2 questions :
1. Do i have to define a user guest specific access, or is defining a guest access on EVERYONE enough ?
2. Do you know why this error occurs ?

Laurent.

Outcomes