• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Spring 4.3.16.RELEASE = does not display Images

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My project is runing on Spring & Spring-security framework with Java 7. Earlier, both, spring and security, were on version 3.1.0.RELEASE. And all pages and images were working fine on IE. Chrome & Firefox without any issue while using this version. Now, we upgraded the Spring version to 4.3.16.RELEASE & Spring-security to 4.2.4.RELEASE. After this upgrade, we learn that some images (.png) are not getting displayed in IE, but they displays well on other browser like: IE & FireFox. Those images which are not displaying, if I try open them directly by types url, it asks to download that image file; but those which are working fine, I can see those images directly by typing their url in browser also. Hence, I am in impression that this is because of Spring Framework change we did from 3.1.0.REALEASE to 4.3.16.RELEASE and spring-security from 3.1.0.RELEASE to 4.3.16.RELEASE.

Here I am listing the dependencies modules I am using from Spring. Please note

${spring.framework.version}: Earlier was => 3.1.0.RELEASE , but now it is: 4.3.16.RELEASE ${spring.security.version} : Earlier was => 3.1.0.RELEASE , but now it is: 4.2.4.RELEASE

       <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-beans</artifactId>
           <version>${spring.framework.version}</version>
           </exclusions>
       </dependency>
       <dependency>
<groupId>org.springframework</groupId>
           <artifactId>spring-context</artifactId>
           <version>${spring.framework.version}</version>
           </exclusions>
       </dependency>
       <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-core</artifactId>
           <version>${spring.framework.version}</version>
           </exclusions>
       </dependency>
       <dependency>
           <groupId>org.springframework.integration</groupId>
           <artifactId>spring-integration-core</artifactId>
           <version>2.1.0.RELEASE</version>
       </dependency>
       <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-webmvc</artifactId>
           <version>${spring.framework.version}</version>
       </dependency>
       <dependency>
       <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-oxm</artifactId>
           <version>${spring.framework.version}</version>
       </dependency>
   <groupId>org.springframework</groupId>
           <artifactId>spring-webmvc</artifactId>
           <version>${spring.framework.version}</version>

   <groupId>org.springframework.security</groupId>
           <artifactId>spring-security-web</artifactId>
           <version>${spring.security.version}</version>
       <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-webmvc</artifactId>
           <version>${spring.framework.version}</version>
       </dependency>

       <dependency>
           <groupId>org.springframework.security</groupId>
           <artifactId>spring-security-web</artifactId>
           <version>${spring.security.version}</version>
       </dependency>
       <dependency>
           <groupId>org.springframework.security</groupId>
           <artifactId>spring-security-config</artifactId>
           <version>${spring.security.version}</version>
       </dependency>
       <dependency>
           <groupId>org.springframework.security</groupId>
           <artifactId>spring-security-taglibs</artifactId>
           <version>${spring.security.version}</version>
       </dependency>
       <dependency>
           <groupId>org.springframework.security</groupId>
           <artifactId>spring-security-core</artifactId>
           <version>${spring.security.version}</version>
       </dependency>

       <dependency>
           <groupId>org.springframework.data</groupId>
           <artifactId>spring-data-jpa</artifactId>
           <version>1.0.3.RELEASE</version>
       </dependency>

My application is deployed on TcServer (Tomcat) . Any hint and suggestion what is causing the issue ?
 
Sheriff
Posts: 21804
104
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like a content type issue. Can you check Chrome's developer tools when you open them and check the content type header?
 
Ramesh Kumar Swarnkar
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only few of images are not getting displayed, not all in spring-security4.3.16.RELEASE.
So what is there in spring-security.3.1.0.RELEASE, which makes those images to display.
Curiously, comparing the jars downloaded by these versions, I see 3.1.0.RELEASE downloads one additional jar : spring-security-crypto.3.1.0.RELEASE, rest all jars are similar in both version.
Could this be the reason ??
 
Ramesh Kumar Swarnkar
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ramesh Kumar Swarnkar wrote:Only few of images are not getting displayed, not all in spring-security4.3.16.RELEASE.
So what is there in spring-security.3.1.0.RELEASE, which makes those images to display.
Curiously, comparing the jars downloaded by these versions, I see 3.1.0.RELEASE downloads one additional jar : spring-security-crypto.3.1.0.RELEASE, rest all jars are similar in both version.
Could this be the reason ??



Sorry, I mean spring-security.4.2.4.RELEASE not  4.3.16.RELEASE.
 
You have to be odd to be #1 - Seuss. An odd little ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!