File tree Expand file tree Collapse file tree 5 files changed +11
-5
lines changed
app/core/src/main/java/stirling/software/SPDF/controller/api/pipeline Expand file tree Collapse file tree 5 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 3737import stirling .software .SPDF .model .PipelineOperation ;
3838import stirling .software .SPDF .model .PipelineResult ;
3939import stirling .software .SPDF .service .ApiDocService ;
40+ import stirling .software .common .model .enumeration .Role ;
4041import stirling .software .common .service .UserServiceInterface ;
4142import stirling .software .common .util .TempFile ;
4243import stirling .software .common .util .TempFileManager ;
@@ -111,7 +112,12 @@ private void validatePipelineUrl(String url) {
111112
112113 private String getApiKeyForUser () {
113114 if (userService == null ) return "" ;
114- return userService .getCurrentUserApiKey ();
115+ String username = userService .getCurrentUsername ();
116+ if (username != null && !username .equals ("anonymousUser" )) {
117+ return userService .getApiKeyForUser (username );
118+ }
119+ // Scheduled/internal context — no user in security context
120+ return userService .getApiKeyForUser (Role .INTERNAL_API_USER .getRoleId ());
115121 }
116122
117123 private String getBaseUrl () {
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ springBoot {
7878
7979allprojects {
8080 group = ' stirling.software'
81- version = ' 2.9.1 '
81+ version = ' 2.9.2 '
8282
8383 configurations. configureEach {
8484 exclude group : " org.springframework.boot" , module : " spring-boot-starter-tomcat"
Original file line number Diff line number Diff line change 11{
22 "$schema" : " ../node_modules/@tauri-apps/cli/config.schema.json" ,
33 "productName" : " Stirling-PDF" ,
4- "version" : " 2.9.1 " ,
4+ "version" : " 2.9.2 " ,
55 "identifier" : " stirling.pdf.dev" ,
66 "build" : {
77 "frontendDist" : " ../dist" ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const FREE_LICENSE_INFO: LicenseInfo = {
3838
3939const BASE_NO_LOGIN_CONFIG : AppConfig = {
4040 enableAnalytics : true ,
41- appVersion : '2.9.1 ' ,
41+ appVersion : '2.9.2 ' ,
4242 serverCertificateEnabled : false ,
4343 enableAlphaFunctionality : false ,
4444 serverPort : 8080 ,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const FREE_LICENSE_INFO: LicenseInfo = {
4848
4949const BASE_NO_LOGIN_CONFIG : AppConfig = {
5050 enableAnalytics : true ,
51- appVersion : '2.9.1 ' ,
51+ appVersion : '2.9.2 ' ,
5252 serverCertificateEnabled : false ,
5353 enableAlphaFunctionality : false ,
5454 enableDesktopInstallSlide : true ,
You can’t perform that action at this time.
0 commit comments