Re: Tomcat server not considering Mime Type - Request urgent help!!
If you are via AJP connector, then check if Apache proxy is changing headers. We have a similar environment and when we set content-type, clients see the same but possible it must be overriding On Wed, Jan 13, 2021, 3:14 PM Jonnalagadda, Swathi (External) < swathi.jonnalaga...@xerox.com> wrote: > This issue is not resolved yet. The extension of file is clearly .xls but > I see content-type in response header is set to text/html. > > Please note that the request initially hits apache2.4 server which is > redirected to tomcat9 server after successful authentication at siteminder. > > The connection is configured via ajp connector. > > Is there a possibility that the apache server is overwriting the > content-type header in response ? > > Please advise. > > Thanks > Swathi > > -Original Message- > From: Jonnalagadda, Swathi (External) [mailto: > swathi.jonnalaga...@xerox.com] > Sent: Wednesday, January 13, 2021 1:57 PM > To: Tomcat Users List > Cc: Mark Thomas > Subject: RE: Tomcat server not considering Mime Type - Request urgent > help!! > > CAUTION: This email originated from outside the organization. Do not > click links or open attachments unless you recognize the sender and know > the content is safe. > > Thank you for the email > > We could see that when we try to open the xls file separately the browser > shows dialogue box to save it so it is nothing to do with browser settings > > Could you please advise if I am missing out any setting here. > > Thanks > Swathi > -Original Message- > From: Mounika Reddy [mailto:spidermai...@gmail.com] > Sent: Wednesday, January 13, 2021 3:48 AM > To: Tomcat Users List > Cc: Mark Thomas > Subject: Re: Tomcat server not considering Mime Type - Request urgent > help!! > > CAUTION: This email originated from outside the organization. Do not > click links or open attachments unless you recognize the sender and know > the content is safe. > > Pls check http response headers for the request to confirm if it's > returning proper headers. > > Once they are in place then it may be to do with browser settings not > processing headers. > > > > On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) < > swathi.jonnalaga...@xerox.com> wrote: > > > Hi Team > > > > We have an application deployed in tomcat9.0.38 server which generates > > an xls file dynamically and saves at server end. When we try to access > > the file using application frontend, it is neither showing up in excel > > format nor showing up pop up to save the file instead it is showing > > the content of xls file in xml format directly on the browser. > > > > Below mime type is set both at web.xml of webapplicatio end and as > > well as Tomcat9038/conf/web.xml > > > > > > xls > > application/vnd.ms-excel > > > > > > Could you please help in resolving the issue ASAP > > > > > > Thanks > > Swathi > > >
RE: Tomcat server not considering Mime Type - Request urgent help!!
This issue is not resolved yet. The extension of file is clearly .xls but I see content-type in response header is set to text/html. Please note that the request initially hits apache2.4 server which is redirected to tomcat9 server after successful authentication at siteminder. The connection is configured via ajp connector. Is there a possibility that the apache server is overwriting the content-type header in response ? Please advise. Thanks Swathi -Original Message- From: Jonnalagadda, Swathi (External) [mailto:swathi.jonnalaga...@xerox.com] Sent: Wednesday, January 13, 2021 1:57 PM To: Tomcat Users List Cc: Mark Thomas Subject: RE: Tomcat server not considering Mime Type - Request urgent help!! CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. Thank you for the email We could see that when we try to open the xls file separately the browser shows dialogue box to save it so it is nothing to do with browser settings Could you please advise if I am missing out any setting here. Thanks Swathi -Original Message- From: Mounika Reddy [mailto:spidermai...@gmail.com] Sent: Wednesday, January 13, 2021 3:48 AM To: Tomcat Users List Cc: Mark Thomas Subject: Re: Tomcat server not considering Mime Type - Request urgent help!! CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. Pls check http response headers for the request to confirm if it's returning proper headers. Once they are in place then it may be to do with browser settings not processing headers. On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) < swathi.jonnalaga...@xerox.com> wrote: > Hi Team > > We have an application deployed in tomcat9.0.38 server which generates > an xls file dynamically and saves at server end. When we try to access > the file using application frontend, it is neither showing up in excel > format nor showing up pop up to save the file instead it is showing > the content of xls file in xml format directly on the browser. > > Below mime type is set both at web.xml of webapplicatio end and as > well as Tomcat9038/conf/web.xml > > > xls > application/vnd.ms-excel > > > Could you please help in resolving the issue ASAP > > > Thanks > Swathi >
Re: Can we get Digest Authentication with TOMCAT 7
On 13/01/2021 09:36, Ravi Kumar wrote: > Hi Tomcat Team, > > I am using a Tomcat based webserver container for our web application. All > the deplyoment and other task taken care using TOMCAT 7.10.105. Tomcat 7.0.x will reach end of life on 31 March 2021. > Currently we are using the BASIC Authentication for the Manager and tomcat > web application. > Can we migrate and use DIGEST Authentication for the same ? Yes. > What are the > suggested and recommended way to implement and using DIGEST Authentication > with TOMCAT 7 web applications? Simply replace "BASIC" in the application's web.xml file with "DIGEST" > Your valuable assistance is much appreciated. If you are storing passwords in digest form note the following: http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html#Digested_Passwords Generally, you are better off switching from BASIC+http to BASIC+https rather than DIGEST+http. If you are already using BASIC+https then switching to DIGEST+https is unlikely to gain you anything. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Can we get Digest Authentication with TOMCAT 7
Hi Tomcat Team, I am using a Tomcat based webserver container for our web application. All the deplyoment and other task taken care using TOMCAT 7.10.105. Currently we are using the BASIC Authentication for the Manager and tomcat web application. Can we migrate and use DIGEST Authentication for the same ? What are the suggested and recommended way to implement and using DIGEST Authentication with TOMCAT 7 web applications? Your valuable assistance is much appreciated. Regards, Ravi
Re: Tomcat server not considering Mime Type - Request urgent help!!
I have found getting browsers to handle objects correctly is problematic and needs to be specific to the use case in the html link. On 13/01/2021 08:27, Jonnalagadda, Swathi (External) wrote: Thank you for the email We could see that when we try to open the xls file separately the browser shows dialogue box to save it so it is nothing to do with browser settings Could you please advise if I am missing out any setting here. Thanks Swathi -Original Message- From: Mounika Reddy [mailto:spidermai...@gmail.com] Sent: Wednesday, January 13, 2021 3:48 AM To: Tomcat Users List Cc: Mark Thomas Subject: Re: Tomcat server not considering Mime Type - Request urgent help!! CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. Pls check http response headers for the request to confirm if it's returning proper headers. Once they are in place then it may be to do with browser settings not processing headers. On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) < swathi.jonnalaga...@xerox.com> wrote: Hi Team We have an application deployed in tomcat9.0.38 server which generates an xls file dynamically and saves at server end. When we try to access the file using application frontend, it is neither showing up in excel format nor showing up pop up to save the file instead it is showing the content of xls file in xml format directly on the browser. Below mime type is set both at web.xml of webapplicatio end and as well as Tomcat9038/conf/web.xml xls application/vnd.ms-excel Could you please help in resolving the issue ASAP Thanks Swathi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat server not considering Mime Type - Request urgent help!!
Thank you for the email We could see that when we try to open the xls file separately the browser shows dialogue box to save it so it is nothing to do with browser settings Could you please advise if I am missing out any setting here. Thanks Swathi -Original Message- From: Mounika Reddy [mailto:spidermai...@gmail.com] Sent: Wednesday, January 13, 2021 3:48 AM To: Tomcat Users List Cc: Mark Thomas Subject: Re: Tomcat server not considering Mime Type - Request urgent help!! CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. Pls check http response headers for the request to confirm if it's returning proper headers. Once they are in place then it may be to do with browser settings not processing headers. On Tue, Jan 12, 2021, 2:48 PM Jonnalagadda, Swathi (External) < swathi.jonnalaga...@xerox.com> wrote: > Hi Team > > We have an application deployed in tomcat9.0.38 server which generates > an xls file dynamically and saves at server end. When we try to access > the file using application frontend, it is neither showing up in excel > format nor showing up pop up to save the file instead it is showing > the content of xls file in xml format directly on the browser. > > Below mime type is set both at web.xml of webapplicatio end and as > well as Tomcat9038/conf/web.xml > > > xls > application/vnd.ms-excel > > > Could you please help in resolving the issue ASAP > > > Thanks > Swathi >