Skip to content

Commit 40187f3

Browse files
authored
Merge pull request #24 from ls1intum/tum-deploy
increase max request size
2 parents 59964e7 + bfda240 commit 40187f3

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

application-server/src/main/java/com/ase/angelos_kb_backend/controller/OrganisationController.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,19 @@ public ResponseEntity<String> removeOrganisation(
9191
}
9292

9393
@PutMapping("/setChatbotUrl/{orgId}")
94-
public ResponseEntity<String> setChatbotUrl(
95-
@RequestHeader("Authorization") String token,
96-
@PathVariable Long orgId,
97-
@RequestParam String chatbotUrl) {
98-
// Verify system admin access
99-
if (!jwtUtil.extractIsSystemAdmin(token.replace("Bearer ", ""))) {
100-
return ResponseEntity.status(HttpStatus.FORBIDDEN).body("Access denied.");
101-
}
102-
103-
organisationService.setChatbotUrl(orgId, chatbotUrl);
104-
105-
return ResponseEntity.ok().build();
106-
}
94+
public ResponseEntity<String> setChatbotUrl(
95+
@RequestHeader("Authorization") String token,
96+
@PathVariable Long orgId,
97+
@RequestParam String chatbotUrl) {
98+
// Verify system admin access
99+
if (!jwtUtil.extractIsSystemAdmin(token.replace("Bearer ", ""))) {
100+
return ResponseEntity.status(HttpStatus.FORBIDDEN).body("Access denied.");
101+
}
102+
103+
organisationService.setChatbotUrl(orgId, chatbotUrl);
104+
105+
return ResponseEntity.ok().build();
106+
}
107107

108108
@PutMapping("/chatActive")
109109
public ResponseEntity<OrganisationDTO> setChatStatus(

application-server/src/main/resources/application.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ server.port=9007
33
spring.jpa.hibernate.ddl-auto=update
44
spring.application.name=angelos-kb-backend
55
spring.datasource.url=jdbc:postgresql://localhost:5433/kbdatabase
6+
spring.servlet.multipart.max-file-size=5MB
7+
spring.servlet.multipart.max-request-size=5MB
68
spring.mail.host=smtp.gmail.com
79
spring.mail.port=587
810
spring.mail.protocol=smtp

0 commit comments

Comments
 (0)