상세검색 수정, 웹취약점 수정중

This commit is contained in:
JSYOO 2021-12-01 17:19:13 +09:00
parent a0b89806c2
commit 4984d702e9
6 changed files with 36 additions and 22 deletions

View File

@ -182,7 +182,7 @@ public class DataApiVO {
int pageIndex = 0; int pageIndex = 0;
try { try {
pageIndex = Integer.parseInt(getInfoItem(XML_EL_NAME_PAGE_INDEX, "0")); pageIndex = Integer.parseInt(getInfoItem(XML_EL_NAME_PAGE_INDEX, "0"));
} catch(Exception e) { } catch(NumberFormatException e) {
log.error("getPageIndex > " + e.toString()); log.error("getPageIndex > " + e.toString());
return 0; return 0;
} }

View File

@ -624,33 +624,33 @@ public class CmmVO implements Serializable{
} }
public String[] getSearchLocaleArray() { public String[] getSearchLocaleArray() {
return searchLocaleArray; return this.searchLocaleArray;
} }
public void setSearchLocaleArray(String[] searchLocaleArray) { public void setSearchLocaleArray(String[] searchLocaleArray) {
this.searchLocaleArray = searchLocaleArray; this.searchLocaleArray = searchLocaleArray;
} }
public String[] getSearchAssetClassArray() { public String[] getSearchAssetClassArray() {
return searchAssetClassArray; return this.searchAssetClassArray;
} }
public void setSearchAssetClassArray(String[] searchAssetClassArray) { public void setSearchAssetClassArray(String[] searchAssetClassArray) {
this.searchAssetClassArray = searchAssetClassArray; this.searchAssetClassArray = searchAssetClassArray;
} }
public String[] getSearchAssetTypeArray() { public String[] getSearchAssetTypeArray() {
return searchAssetTypeArray; return this.searchAssetTypeArray;
} }
public void setSearchAssetTypeArray(String[] searchAssetTypeArray) { public void setSearchAssetTypeArray(String[] searchAssetTypeArray) {
this.searchAssetTypeArray = searchAssetTypeArray; this.searchAssetTypeArray = searchAssetTypeArray;
} }
public String getsCouncilCd() { public String getsCouncilCd() {
return sCouncilCd; return this.sCouncilCd;
} }
public void setsCouncilCd(String sCouncilCd) { public void setsCouncilCd(String sCouncilCd) {
this.sCouncilCd = sCouncilCd; this.sCouncilCd = sCouncilCd;
} }
public String[] getSearchFirstCategoryArray() { public String[] getSearchFirstCategoryArray() {
return searchFirstCategoryArray; return this.searchFirstCategoryArray;
} }
public void setSearchFirstCategoryArray(String[] searchFirstCategoryArray) { public void setSearchFirstCategoryArray(String[] searchFirstCategoryArray) {
this.searchFirstCategoryArray = searchFirstCategoryArray; this.searchFirstCategoryArray = searchFirstCategoryArray;

View File

@ -33,6 +33,7 @@ import org.springframework.http.ResponseEntity;
import org.springframework.http.converter.StringHttpMessageConverter; import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.MultiValueMap; import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.RestTemplate; import org.springframework.web.client.RestTemplate;
import com.google.gson.Gson; import com.google.gson.Gson;
@ -299,7 +300,7 @@ public class NlibSearchServiceImpl implements NlibSearchService{
searchVO.setSubjectCountList(subjectMap); searchVO.setSubjectCountList(subjectMap);
searchVO.setTypeCountList(typeMap); searchVO.setTypeCountList(typeMap);
searchVO.setOrgCountList(orgMap); searchVO.setOrgCountList(orgMap);
} catch(Exception e) { } catch(RestClientException e) {
log.error("getSearch > Exception 발생 : " + e.toString()); log.error("getSearch > Exception 발생 : " + e.toString());
} }
return searchVO; return searchVO;

View File

@ -1,6 +1,7 @@
package nlib.sch.web; package nlib.sch.web;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
import java.net.URL; import java.net.URL;
@ -110,8 +111,6 @@ public class NlibSearchController extends NlibCommonController {
if(searchVO.getPageIndex() < 1) searchVO.setPageIndex(1); if(searchVO.getPageIndex() < 1) searchVO.setPageIndex(1);
if(searchVO.getPageSize() < 1) searchVO.setPageSize(DEFUALT_PAGE_SIZE); if(searchVO.getPageSize() < 1) searchVO.setPageSize(DEFUALT_PAGE_SIZE);
//검색엔진
try{
searchVO.setQuery(StringUtil.getString(searchVO.getQuery(), "")); searchVO.setQuery(StringUtil.getString(searchVO.getQuery(), ""));
searchVO.setReQuery(StringUtil.getString(searchVO.getReQuery(), "")); searchVO.setReQuery(StringUtil.getString(searchVO.getReQuery(), ""));
@ -122,6 +121,9 @@ public class NlibSearchController extends NlibCommonController {
searchVO.setReQuery(""); searchVO.setReQuery("");
searchVO.setReQueryChk("query"); searchVO.setReQueryChk("query");
} }
//검색엔진
try{
searchVO = nlibSearchService.getSearch(searchVO); searchVO = nlibSearchService.getSearch(searchVO);
@ -147,9 +149,13 @@ public class NlibSearchController extends NlibCommonController {
model.addAttribute("pageVO", pageVO); model.addAttribute("pageVO", pageVO);
model.addAttribute("searchVO", searchVO); model.addAttribute("searchVO", searchVO);
}catch(NumberFormatException e){
log.error("searchList.do paging > NumberFormatException 발생 : " + e.toString());
}catch(Exception e){ }catch(Exception e){
log.error("searchList.do getSearch > Exception 발생 : " + e.toString()); log.error("searchList.do getSearch > Exception 발생 : " + e.toString());
} }
//주제분야 목록 조회 //주제분야 목록 조회
List<Map<String,String>> clsf = codeService.listCtClsfs(); List<Map<String,String>> clsf = codeService.listCtClsfs();
//자료유형 //자료유형
@ -404,7 +410,7 @@ public class NlibSearchController extends NlibCommonController {
break; break;
} }
} }
} catch (Exception e) { } catch (IOException e) {
log.error("shorturl-data.do 단축url > Exception 발생 : " + e.toString()); log.error("shorturl-data.do 단축url > Exception 발생 : " + e.toString());
} }
return returnUrl; return returnUrl;

View File

@ -100,7 +100,7 @@ $(document).ready(function() {
depth1 = $(this).parents('.depth2').siblings('.depth1-check').find('label').text(); depth1 = $(this).parents('.depth2').siblings('.depth1-check').find('label').text();
depth2 = $("label[for='"+$(this).attr('id')+"']").text(); depth2 = $("label[for='"+$(this).attr('id')+"']").text();
html = "<li><button type=\"button\" title=\"삭제\" name=\""+ $(this).attr('id') +"\">" + depth1 + "<span class=\"sign\"><input type=\"button\" class=\"del\" onClick=\"delDetailFilter('"+ $(this).attr('id') +"');\" value=\"삭제\"> > </span>"+ depth2 +"</button></li>" html = "<li><button type=\"button\" title=\"삭제\" name=\""+ $(this).attr('id') +"\">" + depth1 + "<span class=\"sign\"> > </span><a href='javascript:void(0);' class=\"del\" onClick=\"delDetailFilter('"+ $(this).attr('id') +"');\">삭제</a>"+ depth2 +"</button></li>"
$(this).parents('.depth2').siblings('.depth1-check').find('input').prop('checked', true); $(this).parents('.depth2').siblings('.depth1-check').find('input').prop('checked', true);
$(this).parents('.conditions-box').siblings('.selected-conditions').find('.conditions').append(html); $(this).parents('.conditions-box').siblings('.selected-conditions').find('.conditions').append(html);

View File

@ -42,6 +42,10 @@ $(document).ready(function() {
%> %>
$("[id^='mobileSuc']").css("display","inline-block"); $("[id^='mobileSuc']").css("display","inline-block");
$("[id^='emailSuc']").css("display","inline-block"); $("[id^='emailSuc']").css("display","inline-block");
$("[id^='service-chk2-']").change(function(){
$(this).val();
});
<% <%
//새비밀번호,새비밀번호확인이 일치하는지 확인 //새비밀번호,새비밀번호확인이 일치하는지 확인
%> %>
@ -752,7 +756,10 @@ function snsUnlink(snsId){
<p><label for="password" style="display:none;">기존비밀번호</label><input class="passwd" type="password" id="password" name="password" placeholder="기존 비밀번호" required/></p> <p><label for="password" style="display:none;">기존비밀번호</label><input class="passwd" type="password" id="password" name="password" placeholder="기존 비밀번호" required/></p>
<p><label for="newPassword" style="display:none;">새 비밀번호</label><input class="passwd" type="password" id="newPassword" name="newPassword" placeholder="새 비밀번호" required/></p> <p><label for="newPassword" style="display:none;">새 비밀번호</label><input class="passwd" type="password" id="newPassword" name="newPassword" placeholder="새 비밀번호" required/></p>
<p><label for="newPasswordConfirm" style="display:none;">새 비밀번호 확인</label><input class="passwd" type="password" id="newPasswordConfirm" name="newPasswordConfirm" placeholder="새 비밀번호 확인" required/></p> <p><label for="newPasswordConfirm" style="display:none;">새 비밀번호 확인</label><input class="passwd" type="password" id="newPasswordConfirm" name="newPasswordConfirm" placeholder="새 비밀번호 확인" required/></p>
<span id="passwdMatch" class="suc" style="display:none;">일치합니다.</span> <p>
<span id="passwdMatch" class="suc" >일치합니다.</span>
<span id="passwdMatch-chk" class="chk-suc" ></span>
</p>
<p class="text">9자리 이상, 숫자/문자/특수문자를 혼합하여 입력</p> <p class="text">9자리 이상, 숫자/문자/특수문자를 혼합하여 입력</p>
</div> </div>
<div class="row btn-box"> <div class="row btn-box">