Author: kcardineaud Date: 2011-06-30 12:05:45 +0200 (Thu, 30 Jun 2011) New Revision: 149 Url: http://nuiton.org/repositories/revision/scmwebeditor/149 Log: Fix a auth problem with svn repository with read/write protection Modified: trunk/src/main/java/org/nuiton/scmwebeditor/actions/PreviewAction.java trunk/src/main/java/org/nuiton/scmwebeditor/actions/SearchAction.java trunk/src/main/webapp/ModificationViewer.jsp trunk/src/main/webapp/OutConnection.jsp Modified: trunk/src/main/java/org/nuiton/scmwebeditor/actions/PreviewAction.java =================================================================== --- trunk/src/main/java/org/nuiton/scmwebeditor/actions/PreviewAction.java 2011-06-30 08:45:44 UTC (rev 148) +++ trunk/src/main/java/org/nuiton/scmwebeditor/actions/PreviewAction.java 2011-06-30 10:05:45 UTC (rev 149) @@ -56,8 +56,8 @@ log.debug("Enter in preview action"); } - if(log.isInfoEnabled()) { - log.info(newText); + if(log.isDebugEnabled()) { + log.debug(newText); } //Using jrst for generate html document Modified: trunk/src/main/java/org/nuiton/scmwebeditor/actions/SearchAction.java =================================================================== --- trunk/src/main/java/org/nuiton/scmwebeditor/actions/SearchAction.java 2011-06-30 08:45:44 UTC (rev 148) +++ trunk/src/main/java/org/nuiton/scmwebeditor/actions/SearchAction.java 2011-06-30 10:05:45 UTC (rev 149) @@ -119,6 +119,7 @@ address = address.substring(0, address.length()-1); } + SVNRepository repository = null; try { @@ -148,6 +149,7 @@ Collections.sort(files); } catch (SVNAuthenticationException authexep) { + log.error("Can't access to the repository : Auth Problem"); return "authError"; } catch ( SVNException svne ) { Modified: trunk/src/main/webapp/ModificationViewer.jsp =================================================================== --- trunk/src/main/webapp/ModificationViewer.jsp 2011-06-30 08:45:44 UTC (rev 148) +++ trunk/src/main/webapp/ModificationViewer.jsp 2011-06-30 10:05:45 UTC (rev 149) @@ -168,7 +168,7 @@ <script type="text/javascript"> var textarea = document.getElementById('newTextId'); - var uiOptions = { path : 'codemirror-ui/js/', searchMode : 'popup' } + var uiOptions = { path : 'codemirror-ui/js/', searchMode : 'inline' } var codeMirrorOptions = { mode: "<%=typeEditor%>" } var editor = new CodeMirrorUI(textarea,uiOptions,codeMirrorOptions); </script> Modified: trunk/src/main/webapp/OutConnection.jsp =================================================================== --- trunk/src/main/webapp/OutConnection.jsp 2011-06-30 08:45:44 UTC (rev 148) +++ trunk/src/main/webapp/OutConnection.jsp 2011-06-30 10:05:45 UTC (rev 149) @@ -23,8 +23,9 @@ Please complete this form for application using. </h4> </center> + +<form id="configForm" method="get" action="checkout.action"> <center> -<form id="configForm" method="get" action="checkout.action"> <p><label>SCM path: <input TYPE=text name="address" SIZE=100></label> <s:url id="ajaxSearch" value="search.action" /> @@ -43,11 +44,11 @@ <input type="submit" name="Save" /> </p> +</center> +<div id="htmlcontentSearch" ></div> +</form> -</form> -</center> -<div id="htmlcontentSearch" ></div> <p align="right">©2004-2009 CodeLutin</p> </body> </html>