リビジョン | 1621 (tree) |
---|---|
日時 | 2018-08-21 15:29:45 |
作者 | takahashi_m |
(メッセージはありません)
@@ -1,4 +1,12 @@ | ||
1 | -5.10.2.1 (2018/08/18) | |
1 | +5.10.2.2 (2018/08/24) | |
2 | + [一部エラーを、標準のErrorMessageに追加するように変更] | |
3 | + AjaxSubmit時にエラーと判定されないため、一部のエラー出力をjspPrintから標準のErrorMessageに変更(6.9.9.0) | |
4 | + hayabusa.taglib.QueryTag#doEndTag() | |
5 | + hayabusa.taglib.PlsqlUpdateTag#doEndTag() | |
6 | + hayabusa.taglib.TableUpdateTag#doEndTag() | |
7 | + hayabusa.taglib. | |
8 | + | |
9 | +5.10.2.1 (2018/08/18) | |
2 | 10 | [andタグのプレースホルダ対応] |
3 | 11 | 原則シングルクォーテーションを利用させないことでSQLインジェクション対策は行っていますが、 |
4 | 12 | 一般的なプレースホルダ形式でのWhere句のサポートを拡張しておきます。 |
@@ -158,6 +158,8 @@ | ||
158 | 158 | |
159 | 159 | /** |
160 | 160 | * Taglibの終了タグが見つかったときに処理する doEndTag() を オーバーライドします。 |
161 | + * | |
162 | + * @og.rev 5.10.2.2 (2018/08/24) 一部のエラーをjspPrintから標準のErrorMessageに変更 | |
161 | 163 | * |
162 | 164 | * @return 後続処理の指示 |
163 | 165 | */ |
@@ -181,6 +183,14 @@ | ||
181 | 183 | |
182 | 184 | setRequestAttribute( "DB.COUNT" , String.valueOf( executeCount ) ); |
183 | 185 | setRequestAttribute( "DB.ERR_CODE", String.valueOf( errCode ) ); |
186 | + | |
187 | + // 5.10.2.2 (2018/08/24) 6.9.9.0 「ERR0041:検索処理中に割り込みの検索要求がありました」エラーを、標準のErrorMessageに追加するようにします。 | |
188 | + if( ! commitTableObject( tableId, table ) ) { | |
189 | + if( errMessage == null ) { errMessage = new ErrorMessage( "FileUpdateTag Query Error!" ); } | |
190 | + // ERR0041:検索処理中に割り込みの検索要求がありました。処理されません。 | |
191 | + errMessage.addMessage( 0,ErrorMessage.NG,"ERR0041" ); | |
192 | + errCode = ErrorMessage.NG; | |
193 | + } | |
184 | 194 | |
185 | 195 | String err = TaglibUtil.makeHTMLErrorTable( errMessage,getResource() ); |
186 | 196 | if( err != null && err.length() > 0 ) { |
@@ -188,11 +198,12 @@ | ||
188 | 198 | setSessionAttribute( errMsgId,errMessage ); |
189 | 199 | } |
190 | 200 | label = buf.toString(); |
191 | - | |
192 | - if( table != null && ! commitTableObject( tableId, table ) ) { | |
193 | - jspPrint( "FileUpdateTag Query処理が割り込まれました。DBTableModel は登録しません。" ); | |
194 | - return (SKIP_PAGE); | |
195 | - } | |
201 | + | |
202 | +// // 5.10.2.2 (2018/08/24) 6.9.9.0 | |
203 | +// if( table != null && ! commitTableObject( tableId, table ) ) { | |
204 | +// jspPrint( "FileUpdateTag Query処理が割り込まれました。DBTableModel は登録しません。" ); | |
205 | +// return (SKIP_PAGE); | |
206 | +// } | |
196 | 207 | } |
197 | 208 | |
198 | 209 | jspPrint( label ); |
@@ -163,6 +163,7 @@ | ||
163 | 163 | * @og.rev 4.3.3.0 (2008/09/22) 属性 stopError の設定により、JSP処理を中止するかどうかを制御します。 |
164 | 164 | * @og.rev 4.3.5.7 (2009/03/22) アクセスカウント不具合対応 |
165 | 165 | * @og.rev 5.9.26.1 (2017/11/10) dispError対応 |
166 | + * @og.rev 5.10.2.2 (2018/08/24) 一部のエラーをjspPrintから標準のErrorMessageに変更 | |
166 | 167 | * |
167 | 168 | * @return 後続処理の指示 |
168 | 169 | */ |
@@ -172,6 +173,13 @@ | ||
172 | 173 | |
173 | 174 | String label = HybsSystem.BR; // 検索しなかった場合。 |
174 | 175 | if( check( command, COMMAND_LIST ) ) { |
176 | + // 5.10.2.2 (2018/08/24) 6.9.9.0 「ERR0041:検索処理中に割り込みの検索要求がありました」エラーを、標準のErrorMessageに追加するようにします。 | |
177 | + if( table != null && ! commitTableObject( tableId, table ) ) { | |
178 | + if( errMessage == null ) { errMessage = new ErrorMessage( "PlsqlUpdateTag Query Error!" ); } | |
179 | + // ERR0041:検索処理中に割り込みの検索要求がありました。処理されません。 | |
180 | + errMessage.addMessage( 0,ErrorMessage.NG,"ERR0041" ); | |
181 | + errCode = ErrorMessage.NG; | |
182 | + } | |
175 | 183 | |
176 | 184 | // 3.5.5.2 (2004/04/02) TaglibUtil.makeHTMLErrorTable メソッドを利用 |
177 | 185 | String err = TaglibUtil.makeHTMLErrorTable( errMessage,getResource() ); |
@@ -190,12 +198,13 @@ | ||
190 | 198 | // 5.9.26.1 (2017/11/10) エラーメッセージをリクエスト変数で持つようにしておく |
191 | 199 | setRequestAttribute( "DB.ERR_MSG", label ); |
192 | 200 | |
193 | - // 3.6.0.8 (2004/11/19) トランザクションチェックを行います。 | |
194 | - // 4.0.0.0 (2007/11/29) 入れ子if の統合 | |
195 | - if( table != null && ! commitTableObject( tableId, table ) ) { | |
196 | - jspPrint( "PlsqlUpdateTag Query処理が割り込まれました。DBTableModel は登録しません。" ); | |
197 | - return (SKIP_PAGE); | |
198 | - } | |
201 | +// // 5.10.2.2 (2018/08/24) 6.9.9.0 | |
202 | +// // 3.6.0.8 (2004/11/19) トランザクションチェックを行います。 | |
203 | +// // 4.0.0.0 (2007/11/29) 入れ子if の統合 | |
204 | +// if( table != null && ! commitTableObject( tableId, table ) ) { | |
205 | +// jspPrint( "PlsqlUpdateTag Query処理が割り込まれました。DBTableModel は登録しません。" ); | |
206 | +// return (SKIP_PAGE); | |
207 | +// } | |
199 | 208 | } |
200 | 209 | |
201 | 210 | // 5.9.26.1 (2017/11/10) dispErrorで表示をコントロール |
@@ -389,6 +389,7 @@ | ||
389 | 389 | * @og.rev 5.5.3.4 (2012/06/19) trace 時は、実際の検索処理を行わない様に変更。 |
390 | 390 | * @og.rev 5.6.3.0 (2013/04/01) エラー時メッセージ変更 |
391 | 391 | * @og.rev 5.9.16.1 (2017/11/10) dispErrorの動作追加 |
392 | + * @og.rev 5.10.2.2 (2018/08/24) 一部のエラーをjspPrintから標準のErrorMessageに変更 | |
392 | 393 | * |
393 | 394 | * @return 後続処理の指示 |
394 | 395 | */ |
@@ -438,6 +439,14 @@ | ||
438 | 439 | buf.append( getResource().getLabel( overflowMsg ) ); |
439 | 440 | buf.append( HybsSystem.BR ); |
440 | 441 | } |
442 | + | |
443 | + // 5.10.2.2 (2018/08/24) 6.9.9.0 「ERR0041:検索処理中に割り込みの検索要求がありました」エラーを、標準のErrorMessageに追加するようにします。 | |
444 | + if( table != null && ! commitTableObject( tableId, table ) ) { | |
445 | + if( errMessage == null ) { errMessage = new ErrorMessage( "QueryTag Query Error!" ); } | |
446 | + // ERR0041:検索処理中に割り込みの検索要求がありました。処理されません。 | |
447 | + errMessage.addMessage( 0,ErrorMessage.NG,"ERR0041" ); | |
448 | + errCode = ErrorMessage.NG; | |
449 | + } | |
441 | 450 | |
442 | 451 | // 3.5.5.2 (2004/04/02) TaglibUtil.makeHTMLErrorTable メソッドを利用 |
443 | 452 | String err = TaglibUtil.makeHTMLErrorTable( errMessage,getResource() ); |
@@ -452,18 +461,18 @@ | ||
452 | 461 | |
453 | 462 | // 5.9.26.1 (2017/11/10) エラーメッセージをリクエスト変数で持つようにしておく |
454 | 463 | setRequestAttribute( "DB.ERR_MSG", label ); |
455 | - | |
456 | - if( table != null && ! commitTableObject( tableId, table ) ) { | |
457 | - // 3.6.0.8 (2004/11/19) トランザクションチェックを行います。 | |
458 | - // jspPrint( "QueryTag Query処理が割り込まれました。DBTableModel は登録しません。" ); | |
459 | - | |
460 | - // 5.6.4.0 (2013/04/01) リソースから出力するように対応 | |
461 | - ErrorMessage errMsgObj = new ErrorMessage( "QueryTag Query Error!" ); | |
462 | - errMsgObj.addMessage( 0,ErrorMessage.NG,"ERR0041" ); | |
463 | - jspPrint( TaglibUtil.makeHTMLErrorTable( errMsgObj,getResource() ) ); | |
464 | - | |
465 | - return (SKIP_PAGE); | |
466 | - } | |
464 | +// // 5.10.2.2 (2018/08/24) 6.9.9.0 | |
465 | +// if( table != null && ! commitTableObject( tableId, table ) ) { | |
466 | +// // 3.6.0.8 (2004/11/19) トランザクションチェックを行います。 | |
467 | +// // jspPrint( "QueryTag Query処理が割り込まれました。DBTableModel は登録しません。" ); | |
468 | +// | |
469 | +// // 5.6.4.0 (2013/04/01) リソースから出力するように対応 | |
470 | +// ErrorMessage errMsgObj = new ErrorMessage( "QueryTag Query Error!" ); | |
471 | +// errMsgObj.addMessage( 0,ErrorMessage.NG,"ERR0041" ); | |
472 | +// jspPrint( TaglibUtil.makeHTMLErrorTable( errMsgObj,getResource() ) ); | |
473 | +// | |
474 | +// return (SKIP_PAGE); | |
475 | +// } | |
467 | 476 | } |
468 | 477 | |
469 | 478 | // 5.9.26.1 (2017/11/10) dispErrorで表示をコントロール |
@@ -167,6 +167,7 @@ | ||
167 | 167 | * Taglibの終了タグが見つかったときに処理する doEndTag() を オーバーライドします。 |
168 | 168 | * |
169 | 169 | * @og.rev 4.0.0.0 (2007/10/18) メッセージリソース統合( getResource().getMessage ⇒ getResource().getLabel ) |
170 | + * @og.rev 5.10.2.2 (2018/08/24) 一部のエラーをjspPrintから標準のErrorMessageに変更 | |
170 | 171 | * |
171 | 172 | * @return 後続処理の指示 |
172 | 173 | */ |
@@ -184,6 +185,14 @@ | ||
184 | 185 | buf.append( getResource().getLabel( displayMsg ) ); |
185 | 186 | buf.append( HybsSystem.BR ); |
186 | 187 | } |
188 | + | |
189 | + // 5.10.2.2 (2018/08/24) 6.9.9.0 「ERR0041:検索処理中に割り込みの検索要求がありました」エラーを、標準のErrorMessageに追加するようにします。 | |
190 | + if( table != null && ! commitTableObject( tableId, table ) ) { | |
191 | + if( errMessage == null ) { errMessage = new ErrorMessage( "TableUpdateTag Query Error!" ); } | |
192 | + // ERR0041:検索処理中に割り込みの検索要求がありました。処理されません。 | |
193 | + errMessage.addMessage( 0,ErrorMessage.NG,"ERR0041" ); | |
194 | + errCode = ErrorMessage.NG; | |
195 | + } | |
187 | 196 | |
188 | 197 | String err = TaglibUtil.makeHTMLErrorTable( errMessage,getResource() ); |
189 | 198 | if( err != null && err.length() > 0 ) { |
@@ -198,11 +207,12 @@ | ||
198 | 207 | } |
199 | 208 | label = buf.toString(); |
200 | 209 | |
201 | - if( table != null && ! commitTableObject( tableId, table ) ) { | |
202 | - // 3.6.0.8 (2004/11/19) トランザクションチェックを行います。 | |
203 | - jspPrint( "TableUpdateTag Query処理が割り込まれました。DBTableModel は登録しません。" ); | |
204 | - return (SKIP_PAGE); | |
205 | - } | |
210 | +// // 5.10.2.2 (2018/08/24) 6.9.9.0 | |
211 | +// if( table != null && ! commitTableObject( tableId, table ) ) { | |
212 | +// // 3.6.0.8 (2004/11/19) トランザクションチェックを行います。 | |
213 | +// jspPrint( "TableUpdateTag Query処理が割り込まれました。DBTableModel は登録しません。" ); | |
214 | +// return (SKIP_PAGE); | |
215 | +// } | |
206 | 216 | } |
207 | 217 | |
208 | 218 | jspPrint( label ); |