norikra 1.0.5-java → 1.0.6-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61894f524fea6b1a2baee5b6ded868b7b5897ad1
4
- data.tar.gz: 07f714981b43d62258643265a8773e01077f5a4a
3
+ metadata.gz: 49f70a10326048c87cd3366f588d7bf814e1bb97
4
+ data.tar.gz: f7e844d23d9c25442ea1c1a06973de2e049c06cf
5
5
  SHA512:
6
- metadata.gz: 372de0fa852cd3de9ed4a3adaab4a1946d004728522856dba8b4aad70bdfc82d9601e4c08a043d367d61f824cd449c57af0bc5bdb33e88dc123e429485fe9efa
7
- data.tar.gz: f396b95240f6aab7a660a1e31af55c8f904b9fbd8c793c11c3f2c96702f1b4f96de73643beafdf357a2fb5ba58c1ec8f70e04430e54a3de4fe17aa70e3ed83d8
6
+ metadata.gz: 16797110955adb8367955627ff11b691a9b5b68c5d369b154fabd8407cd1b24a064b55b0097d89bef53c9a21cdd8cfc7a3479e7768de957b804a0c5dee9f0a05
7
+ data.tar.gz: 0646b5f217ee7b94b394c34be4506f8de1e30259a29dc0673ab60b5880b82359b232149faa63cf19397d57ade775b2fc55b910422a0c7942e1b508ccdff2580d
data/Changes.md CHANGED
@@ -3,6 +3,13 @@
3
3
  Changes of norikra.
4
4
 
5
5
  ## v1
6
+ * v1.0.5:
7
+ * Add option `--log4j-properties-path` to specify logger configurations by log4j.properties file
8
+ * Add HTTP RPC headers to allow requests from different origins
9
+ * Fix to deny invalid queries:
10
+ * Queries like `SELECT * FROM ...` are prohibited: Norikra cannot handle these queries
11
+ * v1.0.4:
12
+ * Warn if norikra server starts without `--stats` option
6
13
  * v1.0.3:
7
14
  * Fix bug to return Array falsey for Hash output, [] for NULL output
8
15
  * v1.0.2:
@@ -1,3 +1,3 @@
1
1
  module Norikra
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
@@ -62,7 +62,7 @@ class Norikra::WebUI::API < Sinatra::Base
62
62
  def parse_args(param_names, request)
63
63
  body = request.body.read
64
64
  parsed = begin
65
- JSON.parse(body, symbolize_names: true)
65
+ JSON.parse(body)
66
66
  rescue JSON::ParserError => e
67
67
  info "JSON content body parse error"
68
68
  {}
@@ -79,7 +79,7 @@ class Norikra::WebUI::API < Sinatra::Base
79
79
  end
80
80
 
81
81
  post '/open' do
82
- target, fields, auto_field = args = parse_args([:target, :fields, :auto_field], request)
82
+ target, fields, auto_field = args = parse_args(['target', 'fields', 'auto_field'], request)
83
83
  logging(:manage, :open, args){
84
84
  r = engine.open(target, fields, auto_field)
85
85
  json result: (!!r)
@@ -87,7 +87,7 @@ class Norikra::WebUI::API < Sinatra::Base
87
87
  end
88
88
 
89
89
  post '/close' do
90
- target, = args = parse_args([:target], request)
90
+ target, = args = parse_args(['target'], request)
91
91
  logging(:manage, :close, args){
92
92
  r = engine.close(target)
93
93
  json result: (!!r)
@@ -95,7 +95,7 @@ class Norikra::WebUI::API < Sinatra::Base
95
95
  end
96
96
 
97
97
  post '/modify' do
98
- target, auto_field = args = parse_args([:target, :auto_field], request)
98
+ target, auto_field = args = parse_args(['target', 'auto_field'], request)
99
99
  logging(:manage, :modify, args){
100
100
  r = engine.modify(target, auto_field)
101
101
  json result: (!!r)
@@ -109,7 +109,7 @@ class Norikra::WebUI::API < Sinatra::Base
109
109
  end
110
110
 
111
111
  post '/register' do
112
- query_name, query_group, expression = args = parse_args([:query_name, :query_group, :expression], request)
112
+ query_name, query_group, expression = args = parse_args(['query_name', 'query_group', 'expression'], request)
113
113
  logging(:manage, :register, args){
114
114
  r = engine.register(Norikra::Query.new(:name => query_name, :group => query_group, :expression => expression))
115
115
  json result: (!!r)
@@ -117,7 +117,7 @@ class Norikra::WebUI::API < Sinatra::Base
117
117
  end
118
118
 
119
119
  post '/deregister' do
120
- query_name, = args = parse_args([:query_name], request)
120
+ query_name, = args = parse_args(['query_name'], request)
121
121
  logging(:manage, :deregister, args){
122
122
  r = engine.deregister(query_name)
123
123
  json result: (!!r)
@@ -125,14 +125,14 @@ class Norikra::WebUI::API < Sinatra::Base
125
125
  end
126
126
 
127
127
  get '/fields' do
128
- target, = args = parse_args([:target], request)
128
+ target, = args = parse_args(['target'], request)
129
129
  logging(:show, :fields, args){
130
130
  json engine.typedef_manager.field_list(target)
131
131
  }
132
132
  end
133
133
 
134
134
  post '/reserve' do
135
- target, fieldname, type = args = parse_args([:target, :fieldname, :type], request)
135
+ target, fieldname, type = args = parse_args(['target', 'fieldname', 'type'], request)
136
136
  logging(:manage, :reserve, args){
137
137
  r = engine.reserve(target, fieldname, type)
138
138
  json result: (!!r)
@@ -140,7 +140,7 @@ class Norikra::WebUI::API < Sinatra::Base
140
140
  end
141
141
 
142
142
  post '/send' do
143
- target, events = args = parse_args([:target, :events], request)
143
+ target, events = args = parse_args(['target', 'events'], request)
144
144
  logging(:data, :send, args){
145
145
  r = engine.send(target, events)
146
146
  json result: (!!r)
@@ -148,21 +148,21 @@ class Norikra::WebUI::API < Sinatra::Base
148
148
  end
149
149
 
150
150
  post '/event' do
151
- query_name, = args = parse_args([:query_name], request)
151
+ query_name, = args = parse_args(['query_name'], request)
152
152
  logging(:show, :event, args){
153
153
  json engine.output_pool.pop(query_name)
154
154
  }
155
155
  end
156
156
 
157
157
  get '/see' do
158
- query_name, = args = parse_args([:query_name], request)
158
+ query_name, = args = parse_args(['query_name'], request)
159
159
  logging(:show, :see, args){
160
160
  json engine.output_pool.fetch(query_name)
161
161
  }
162
162
  end
163
163
 
164
164
  post '/sweep' do
165
- query_group, = args = parse_args([:query_group], request)
165
+ query_group, = args = parse_args(['query_group'], request)
166
166
  logging(:show, :sweep){
167
167
  json engine.output_pool.sweep(query_group)
168
168
  }
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: norikra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: java
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-24 00:00:00.000000000 Z
11
+ date: 2014-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mizuno
@@ -261,6 +261,7 @@ files:
261
261
  - public/css/bootstrap.css
262
262
  - public/css/bootstrap.min.css
263
263
  - public/css/norikra.css
264
+ - public/favicon.ico
264
265
  - public/fonts/glyphicons-halflings-regular.eot
265
266
  - public/fonts/glyphicons-halflings-regular.svg
266
267
  - public/fonts/glyphicons-halflings-regular.ttf