RE : Link to protected webdav file

"Paroz Claude" <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
The problem is that the page should be available to guest users. I only want authentication when the user click on the URL of the protected file. I fear that the template cannot catch this action... Do you see the problem ?
Do I have to understand that in Jahia link to protected files should only appear on protected pages ?
 
Maybe the solution should be to tell Tomcat to redirect 403 errors to Jahia login page ?
 
Claude

	-----Message d'origine-----
	De : Stéphane Croisier [mailto:[email protected]] 
	Envoyé : lundi, 12. septembre 2005 13:58
	À : [email protected]
	Objet : RE : Link to protected webdav file
	
	

	Hello,
	
	The problem is that the permissions are not directly on the file system but in the Jahia database. So you need to login in Jahia first and not simply login to the file system. But you may perfectly make some tests in your template and if the file has some more restricted permission than the current user, lauch the jahia login pop-up or redirect him to a custom login page.
	
	Regards
	Stéphane
	
	At 09:16 12/09/2005, you wrote:
	

		I purposely restricted rights on the specified file. I would like to put a protected file on a public page, like I did before with IIS.
		See http://jahia.rpn.ch/page1098.html
		The 3 first protected files are still saved under Windows filesystem (IIS). When I click on one of them, I can enter my username/password to be able to open it.
		The latter is also protected, but under Jahia file directory, hence the Tomcat error message.
		 
		Do you better understand my question ? Is this feasible under Jahia ?
		 
		Claude
		

			-----Message d'origine-----
			
			De : Stéphane Croisier [ mailto:[email protected] <mailto:[email protected]> ] 
			
			Envoyé : vendredi, 9. septembre 2005 16:46
			
			À : [email protected]
			
			Objet : Re: Link to protected webdav file
			
			
			
			Please grant the adequate rights for the guest user on your Jahia file directory. Note that the File Repository permissions are not directly mapped to the Jahia rights (a file can for example be used on several different pages with different rights). So you have different permissions on your file folders and files than on your Jahia pages. Normally a warning should tell you when you add a file or an image with insufficient right to a page that the file is too restrictive for certain users or groups and will lead to a 403. You can browse your file repository in anonymous mode: http://jahia.rpn.ch/webdav/site/rpn/shared to see what an anonymous users can see....
			
			
			Cheers,
			
			Stéphane
			
			
			
			At 11:00 09/09/2005, you wrote:
			
			

				Hi, 
				
				
				When I put a link on a page to a protected WebDAV File, and a non authenticated user click on it, he receives a Tomcat error
				
				
				(see http://jahia.rpn.ch/webdav/site/rpn/shared/EEP/salamandre/33/musaraigne.mp3 <http://jahia.rpn.ch/webdav/site/rpn/shared/EEP/salamandre/33/musaraigne.mp3>  ). 
				
				How is it possible to avoid this problem ? 
				
				
				Regards. 
				
				
				Claude 
				
				****************************************************** 
				
				Réseau Pédagogique Neuchâtelois - http://www.rpn.ch <http://www.rpn.ch>  

	

	- -- --- -----=[ scroisier at jahia dot com ]=---- --- -- -
	CEO - Jahia Ltd, 45 rue de la gare, 1260 Nyon (Switzerland)
	Jahia : The Java Unified Web Platform 
	www.jahia.org <http://www.jahia.org/>  - The community and product web site
	www.jahia.com <http://www.jahia.com/>  - Our commercial services company
	www.collaborativesource.org <http://www.collaborativesource.org/>  - The Collaborative Source Initiative
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.