File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
splitio/proxy/controllers Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ require (
8
8
github.com/gin-gonic/gin v1.10.0
9
9
github.com/google/uuid v1.3.0
10
10
github.com/splitio/gincache v1.0.1
11
- github.com/splitio/go-split-commons/v6 v6.1.1-0.20250414224340-9a5c36389db1
11
+ github.com/splitio/go-split-commons/v6 v6.1.1-0.20250415223836-55f450ca303b
12
12
github.com/splitio/go-toolkit/v5 v5.4.0
13
13
github.com/stretchr/testify v1.9.0
14
14
go.etcd.io/bbolt v1.3.6
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ github.com/splitio/gincache v1.0.1 h1:dLYdANY/BqH4KcUMCe/LluLyV5WtuE/LEdQWRE06IX
95
95
github.com/splitio/gincache v1.0.1 /go.mod h1:CcgJDSM9Af75kyBH0724v55URVwMBuSj5x1eCWIOECY =
96
96
github.com/splitio/go-split-commons/v6 v6.1.1-0.20250414224340-9a5c36389db1 h1:le2tNqtYsipMP5PQgJWAtu3x5DbPzquYT36RUeiiVfY =
97
97
github.com/splitio/go-split-commons/v6 v6.1.1-0.20250414224340-9a5c36389db1 /go.mod h1:D/XIY/9Hmfk9ivWsRsJVp439kEdmHbzUi3PKzQQDOXY =
98
+ github.com/splitio/go-split-commons/v6 v6.1.1-0.20250415223836-55f450ca303b h1:vAuwe1IFSCJNGnx/BFwnGyleKTQRcCmypV8DIwkA3fM =
99
+ github.com/splitio/go-split-commons/v6 v6.1.1-0.20250415223836-55f450ca303b /go.mod h1:D/XIY/9Hmfk9ivWsRsJVp439kEdmHbzUi3PKzQQDOXY =
98
100
github.com/splitio/go-toolkit/v5 v5.4.0 h1:g5WFpRhQomnXCmvfsNOWV4s5AuUrWIZ+amM68G8NBKM =
99
101
github.com/splitio/go-toolkit/v5 v5.4.0 /go.mod h1:xYhUvV1gga9/1029Wbp5pjnR6Cy8nvBpjw99wAbsMko =
100
102
github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
Original file line number Diff line number Diff line change @@ -124,9 +124,8 @@ func (c *SdkServerController) SplitChanges(ctx *gin.Context) {
124
124
sParam , _ := ctx .GetQuery ("s" )
125
125
spec , err := specs .ParseAndValidate (sParam )
126
126
if err != nil {
127
- c .logger .Error (fmt .Sprintf ("error parsing spec version: %s." , err ))
128
- ctx .JSON (http .StatusBadRequest , gin.H {"code" : 400 , "message" : err .Error ()})
129
- return
127
+ c .logger .Error (fmt .Sprintf ("error parsing spec version: %s. Defaulting to: %s" , err , specs .Latest ))
128
+ spec = specs .Latest
130
129
}
131
130
132
131
splits .Splits = c .patchUnsupportedMatchers (splits .Splits , spec )
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import (
14
14
"github.com/splitio/go-split-commons/v6/engine/grammar"
15
15
"github.com/splitio/go-split-commons/v6/engine/grammar/matchers"
16
16
"github.com/splitio/go-split-commons/v6/service"
17
- "github.com/splitio/go-split-commons/v6/service/api/specs"
18
17
cmnStorage "github.com/splitio/go-split-commons/v6/storage"
19
18
"github.com/splitio/go-toolkit/v5/logging"
20
19
"github.com/stretchr/testify/assert"
@@ -440,7 +439,7 @@ func TestSplitChangesNewMatcherNewSpec(t *testing.T) {
440
439
ctx .Request .Header .Set ("SplitSDKMachineIp" , "1.2.3.4" )
441
440
ctx .Request .Header .Set ("SplitSDKMachineName" , "ip-1-2-3-4" )
442
441
q := ctx .Request .URL .Query ()
443
- q .Add ("s" , specs . FLAG_V1_1 )
442
+ q .Add ("s" , "1.1" )
444
443
ctx .Request .URL .RawQuery = q .Encode ()
445
444
router .ServeHTTP (resp , ctx .Request )
446
445
You can’t perform that action at this time.
0 commit comments