Skip to content

Commit

Permalink
updated spring boot version to 3.3.6. snyk reported security vulnerab…
Browse files Browse the repository at this point in the history
…ilities in spring boot versions
  • Loading branch information
harshaghanta committed Dec 11, 2024
1 parent f5375f5 commit b136dca
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/BuildingBlocks/EventBus/eventbus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.0</version>
<version>3.3.6</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Ordering/orderapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.1</version>
<version>3.3.6</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.eshoponcontainers</groupId>
Expand Down
4 changes: 2 additions & 2 deletions src/Services/Ordering/ordering-backgroundtasks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.9</version>
<version>3.3.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.eshoponcontainers</groupId>
Expand Down Expand Up @@ -58,7 +58,7 @@
<dependency>
<groupId>io.opentelemetry.javaagent</groupId>
<artifactId>opentelemetry-javaagent</artifactId>
<version>1.24.0</version>
<version>2.10.0</version>
</dependency>

</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions src/Services/Ordering/ordering-infrastructure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>

<spring.version>5.3.31</spring.version>
<spring.version>6.1.15</spring.version>
<hibernate.version>6.3.0.Final</hibernate.version>
</properties>

Expand Down Expand Up @@ -64,7 +64,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>6.1.2</version>
<version>${spring.version}</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Ordering/ordering-notification/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.3</version>
<version>3.3.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.eshoponcontainers</groupId>
Expand Down
4 changes: 2 additions & 2 deletions src/Services/Payment/paymentapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.9</version>
<version>3.3.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.eshoponcontainers</groupId>
Expand Down Expand Up @@ -52,7 +52,7 @@
<dependency>
<groupId>io.opentelemetry.javaagent</groupId>
<artifactId>opentelemetry-javaagent</artifactId>
<version>1.24.0</version>
<version>2.10.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Webhooks/webhooks-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.9</version>
<version>3.3.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.eshoponcontainers</groupId>
Expand Down
4 changes: 2 additions & 2 deletions src/Services/Webhooks/webhooks-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.3</version>
<version>3.3.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.eshoponcontainers</groupId>
Expand Down Expand Up @@ -36,7 +36,7 @@
<dependency>
<groupId>io.opentelemetry.javaagent</groupId>
<artifactId>opentelemetry-javaagent</artifactId>
<version>1.24.0</version>
<version>2.10.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/Services/basketapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>io.opentelemetry.javaagent</groupId>
<artifactId>opentelemetry-javaagent</artifactId>
<version>1.24.0</version>
<version>2.10.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down
10 changes: 5 additions & 5 deletions src/Services/catalogapi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.0</version>
<version>3.3.6</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.eshoponcontainers</groupId>
Expand All @@ -26,7 +26,7 @@
<dependency>
<groupId>io.opentelemetry.javaagent</groupId>
<artifactId>opentelemetry-javaagent</artifactId>
<version>1.24.0</version>
<version>2.10.0</version>
</dependency>

<!-- add actuator -->
Expand Down Expand Up @@ -76,7 +76,7 @@
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.2.0</version>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand All @@ -102,11 +102,11 @@
</dependency>


<dependency>
<!-- <dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
</dependency>
</dependency> -->


<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
import java.io.InputStream;
import java.util.Optional;

import com.eshoponcontainers.catalogapi.entities.CatalogItem;
import com.eshoponcontainers.catalogapi.repositories.CatalogItemRepository;

import org.apache.commons.io.FilenameUtils;
import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
Expand All @@ -18,6 +13,9 @@
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.eshoponcontainers.catalogapi.entities.CatalogItem;
import com.eshoponcontainers.catalogapi.repositories.CatalogItemRepository;

import lombok.extern.slf4j.Slf4j;

@RestController
Expand All @@ -41,8 +39,8 @@ public ResponseEntity<?> getItemPic(@PathVariable("id") Integer id) throws IOExc
ResponseEntity<byte[]> responseEntity;
final HttpHeaders headers = new HttpHeaders();

byte[] media = IOUtils.toByteArray(picStream);
String extension = FilenameUtils.getExtension(pictureFileName);
byte[] media = picStream.readAllBytes();
String extension = pictureFileName.substring(pictureFileName.lastIndexOf('.') + 1);
MediaType mediaType = getMediaTypeByExtension(extension);
headers.setContentType(mediaType);
responseEntity = new ResponseEntity<>(media, headers, HttpStatus.OK);
Expand Down
4 changes: 2 additions & 2 deletions src/Web/WebSpa/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.2</version>
<version>3.3.6</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.eshoponcontainers</groupId>
Expand Down Expand Up @@ -37,7 +37,7 @@
<dependency>
<groupId>io.opentelemetry.javaagent</groupId>
<artifactId>opentelemetry-javaagent</artifactId>
<version>1.24.0</version>
<version>2.10.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down

0 comments on commit b136dca

Please sign in to comment.