4 コミット 57191067c7 ... 3f06955219

作者 SHA1 メッセージ 日付
  herlanS_ 3f06955219 fix number 3 年 前
  herlanS_ 3591a591a6 Merge remote-tracking branch 'bitbucket/master' 3 年 前
  datacom dev c35b1fbf47 bitbucket-pipelines.yml edited online with Bitbucket 3 年 前
  datacom dev 18a8ae0843 Initial Bitbucket Pipelines configuration 3 年 前

+ 27 - 0
bitbucket-pipelines.yml

@@ -0,0 +1,27 @@
+#  Template maven-build
+
+#  This template allows you to test and build your Java project with Maven.
+#  The workflow allows running tests, code checkstyle and security scans on the default branch.
+
+# Prerequisites: pom.xml and appropriate project structure should exist in the repository.
+
+image: maven:3.8.1-openjdk-15
+
+pipelines:
+  default:
+    - parallel:
+      - step:
+          name: Build and Test
+          caches:
+            - maven
+          script:
+            - mvn -B verify --file pom.xml
+          after-script:
+              # Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
+            - pipe: atlassian/checkstyle-report:0.2.0
+      - step:
+          name: Security Scan
+          script:
+            # Run a security scan for sensitive data.
+            # See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security
+            - pipe: atlassian/git-secrets-scan:0.4.3

+ 1 - 1
src/main/kotlin/co/id/datacomsolusindo/ipphonebridge/BridgeFIlter.kt

@@ -83,7 +83,7 @@ class BridgeFilter(private val template: SimpMessagingTemplate, val resourceLoad
         val client = splitPath[1]
         val toPath = "/" + splitPath.takeLast(splitPath.size - 1).joinToString("/")
         val clientNumber = client.toIntOrNull()
-        if (clientNumber != null && clientNumber > 0 && clientNumber < 999) {
+        if (clientNumber != null && clientNumber > 0 && clientNumber <= 999) {
             val search = isResourceAvailable(toPath)
             if (search != null && !search.endsWith("assets/bootstrap.js")) {
                 res.sendRedirect("/resources/$search")