File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ def transport_config(opts={})
26
26
end
27
27
28
28
def generate_config ( opts = { } )
29
+ opts [ :uuid ] ||= generate_payload_uuid
29
30
opts [ :uri ] ||= luri + generate_uri ( opts )
30
31
super ( opts )
31
32
end
@@ -46,7 +47,7 @@ def generate_uri(opts={})
46
47
raise ArgumentError , "Minimum StagerURILength is 5"
47
48
end
48
49
49
- generate_uri_uuid_mode ( :init_java , uri_req_len )
50
+ generate_uri_uuid_mode ( :init_java , uri_req_len , uuid : opts [ :uuid ] )
50
51
end
51
52
52
53
#
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def initialize(info = {})
30
30
# @param len [Fixnum] The length of the URI not including the leading slash, optionally nil for random
31
31
# @return [String] A URI with a leading slash that hashes to the checksum, with an optional UUID
32
32
#
33
- def generate_uri_uuid_mode ( mode , len = nil )
33
+ def generate_uri_uuid_mode ( mode , len = nil , uuid : nil )
34
34
sum = uri_checksum_lookup ( mode )
35
35
36
36
# The URI length may not have room for an embedded UUID
@@ -42,7 +42,7 @@ def generate_uri_uuid_mode(mode,len=nil)
42
42
return "/" + generate_uri_checksum ( sum , len , prefix = "" )
43
43
end
44
44
45
- uuid = generate_payload_uuid
45
+ uuid || = generate_payload_uuid
46
46
uri = generate_uri_uuid ( sum , uuid , len )
47
47
record_payload_uuid_url ( uuid , uri )
48
48
You can’t perform that action at this time.
0 commit comments