Login Error when update Milton 2.6.5.3 from 2.6.1.1

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Login Error when update Milton 2.6.5.3 from 2.6.1.1

Eric Wei
Hi Brad, 

I previously  use Milton 2.6.1.1 in my project ,  and  today when I  try to update to current release Milton 2.6.5.3  ( I only  replace Milton jars )  ,  

There is an  authenticate error when user login  after updated 
      
When I return back to Milton 2.6.1.1  is working.  

The error message is as below : 


18 四月 2017 15:15:29:404 INFO  io.milton.http.HttpManager.process(HttpManager.java:141) - OPTIONS :: 10.211.55.3:8080///webdav/ start
18 四月 2017 15:15:29:420 DEBUG io.milton.http.carddav.AddressBookResourceTypeHelper.getSupportedLevels(AddressBookResourceTypeHelper.java:67) - getSupportedLevels
18 四月 2017 15:15:29:422 DEBUG io.milton.http.caldav.CalendarResourceTypeHelper.getSupportedLevels(CalendarResourceTypeHelper.java:86) - getSupportedLevels
18 四月 2017 15:15:29:429 DEBUG io.milton.http.StandardFilter.process(StandardFilter.java:53) - No response entity to send to client for method: OPTIONS
18 四月 2017 15:15:29:430 INFO  io.milton.http.HttpManager.process(HttpManager.java:162) - OPTIONS :: 10.211.55.3:8080///webdav/ finished 18ms, Status:HTTP/1.1 200 OK, Length:0
18 四月 2017 15:15:29:437 INFO  io.milton.http.HttpManager.process(HttpManager.java:141) - PROPFIND :: 10.211.55.3:8080///webdav/ start
18 四月 2017 15:15:29:439 DEBUG io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:223) - authorise: no logged in user, get ACL for anonymous access
18 四月 2017 15:15:29:439 WARN  io.milton.http.annotated.AccessControlListAnnotationHandler.directPrivs(AccessControlListAnnotationHandler.java:84) - No ACL methods were found
18 四月 2017 15:15:29:440 INFO  io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:243) - Authorisation declined for anonymous access
java.lang.NullPointerException
at io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:245)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:138)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:117)
at io.milton.http.ResourceHandlerHelper.processResource(ResourceHandlerHelper.java:135)
at io.milton.http.webdav.PropFindHandler.processResource(PropFindHandler.java:112)
at io.milton.http.ResourceHandlerHelper.process(ResourceHandlerHelper.java:118)
at io.milton.http.webdav.PropFindHandler.process(PropFindHandler.java:106)
at io.milton.http.StandardFilter.process(StandardFilter.java:49)
at io.milton.http.FilterChain.process(FilterChain.java:40)
at io.milton.http.HttpManager.process(HttpManager.java:158)
at io.milton.servlet.MiltonFilter.doMiltonProcessing(MiltonFilter.java:129)
at io.milton.servlet.MiltonFilter.doFilter(MiltonFilter.java:104)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
18 四月 2017 15:15:29:442 ERROR io.milton.http.StandardFilter.process(StandardFilter.java:73) - exception sending content
java.lang.NullPointerException
at io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:245)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:138)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:117)
at io.milton.http.ResourceHandlerHelper.processResource(ResourceHandlerHelper.java:135)
at io.milton.http.webdav.PropFindHandler.processResource(PropFindHandler.java:112)
at io.milton.http.ResourceHandlerHelper.process(ResourceHandlerHelper.java:118)
at io.milton.http.webdav.PropFindHandler.process(PropFindHandler.java:106)
at io.milton.http.StandardFilter.process(StandardFilter.java:49)
at io.milton.http.FilterChain.process(FilterChain.java:40)
at io.milton.http.HttpManager.process(HttpManager.java:158)
at io.milton.servlet.MiltonFilter.doMiltonProcessing(MiltonFilter.java:129)
at io.milton.servlet.MiltonFilter.doFilter(MiltonFilter.java:104)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
18 四月 2017 15:15:29:443 WARN  io.milton.servlet.ServletResponse.sendError(ServletResponse.java:121) - sendError: HTTP/1.1 500
18 四月 2017 15:15:29:443 INFO  io.milton.servlet.ServletResponse.sendError(ServletResponse.java:129) - Closed outputstream after sendError
18 四月 2017 15:15:29:444 INFO  io.milton.http.HttpManager.process(HttpManager.java:162) - PROPFIND :: 10.211.55.3:8080///webdav/ finished 7ms, Status:null, Length:null

     
Is there other works  to update to latest release except update the jar files ? 

Thanks & Best Regards,
ERic
       



 


_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users
Reply | Threaded
Open this post in threaded view
|

Re: Login Error when update Milton 2.6.5.3 from 2.6.1.1

bradmacnz

Please upgrade to the latest milton, 2.7.2.4

I've just updated the downloads page to this version

Note that milton is now available for download from bintray

https://bintray.com/milton/Milton/milton/view


On 18/04/17 19:43, Eric Wei wrote:
Hi Brad, 

I previously  use Milton 2.6.1.1 in my project ,  and  today when I  try to update to current release Milton 2.6.5.3  ( I only  replace Milton jars )  ,  

There is an  authenticate error when user login  after updated 
      
When I return back to Milton 2.6.1.1  is working.  

The error message is as below : 


18 四月 2017 15:15:29:404 INFO  io.milton.http.HttpManager.process(HttpManager.java:141) - OPTIONS :: 10.211.55.3:8080///webdav/ start
18 四月 2017 15:15:29:420 DEBUG io.milton.http.carddav.AddressBookResourceTypeHelper.getSupportedLevels(AddressBookResourceTypeHelper.java:67) - getSupportedLevels
18 四月 2017 15:15:29:422 DEBUG io.milton.http.caldav.CalendarResourceTypeHelper.getSupportedLevels(CalendarResourceTypeHelper.java:86) - getSupportedLevels
18 四月 2017 15:15:29:429 DEBUG io.milton.http.StandardFilter.process(StandardFilter.java:53) - No response entity to send to client for method: OPTIONS
18 四月 2017 15:15:29:430 INFO  io.milton.http.HttpManager.process(HttpManager.java:162) - OPTIONS :: 10.211.55.3:8080///webdav/ finished 18ms, Status:HTTP/1.1 200 OK, Length:0
18 四月 2017 15:15:29:437 INFO  io.milton.http.HttpManager.process(HttpManager.java:141) - PROPFIND :: 10.211.55.3:8080///webdav/ start
18 四月 2017 15:15:29:439 DEBUG io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:223) - authorise: no logged in user, get ACL for anonymous access
18 四月 2017 15:15:29:439 WARN  io.milton.http.annotated.AccessControlListAnnotationHandler.directPrivs(AccessControlListAnnotationHandler.java:84) - No ACL methods were found
18 四月 2017 15:15:29:440 INFO  io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:243) - Authorisation declined for anonymous access
java.lang.NullPointerException
at io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:245)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:138)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:117)
at io.milton.http.ResourceHandlerHelper.processResource(ResourceHandlerHelper.java:135)
at io.milton.http.webdav.PropFindHandler.processResource(PropFindHandler.java:112)
at io.milton.http.ResourceHandlerHelper.process(ResourceHandlerHelper.java:118)
at io.milton.http.webdav.PropFindHandler.process(PropFindHandler.java:106)
at io.milton.http.StandardFilter.process(StandardFilter.java:49)
at io.milton.http.FilterChain.process(FilterChain.java:40)
at io.milton.http.HttpManager.process(HttpManager.java:158)
at io.milton.servlet.MiltonFilter.doMiltonProcessing(MiltonFilter.java:129)
at io.milton.servlet.MiltonFilter.doFilter(MiltonFilter.java:104)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
18 四月 2017 15:15:29:442 ERROR io.milton.http.StandardFilter.process(StandardFilter.java:73) - exception sending content
java.lang.NullPointerException
at io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:245)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:138)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:117)
at io.milton.http.ResourceHandlerHelper.processResource(ResourceHandlerHelper.java:135)
at io.milton.http.webdav.PropFindHandler.processResource(PropFindHandler.java:112)
at io.milton.http.ResourceHandlerHelper.process(ResourceHandlerHelper.java:118)
at io.milton.http.webdav.PropFindHandler.process(PropFindHandler.java:106)
at io.milton.http.StandardFilter.process(StandardFilter.java:49)
at io.milton.http.FilterChain.process(FilterChain.java:40)
at io.milton.http.HttpManager.process(HttpManager.java:158)
at io.milton.servlet.MiltonFilter.doMiltonProcessing(MiltonFilter.java:129)
at io.milton.servlet.MiltonFilter.doFilter(MiltonFilter.java:104)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
18 四月 2017 15:15:29:443 WARN  io.milton.servlet.ServletResponse.sendError(ServletResponse.java:121) - sendError: HTTP/1.1 500
18 四月 2017 15:15:29:443 INFO  io.milton.servlet.ServletResponse.sendError(ServletResponse.java:129) - Closed outputstream after sendError
18 四月 2017 15:15:29:444 INFO  io.milton.http.HttpManager.process(HttpManager.java:162) - PROPFIND :: 10.211.55.3:8080///webdav/ finished 7ms, Status:null, Length:null

     
Is there other works  to update to latest release except update the jar files ? 

Thanks & Best Regards,
ERic
       



 



_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users


_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users
Reply | Threaded
Open this post in threaded view
|

Re: Login Error when update Milton 2.7.2.4 from 2.6.1.1

Eric Wei
Hi  Brad ,

      When I  update to Milton 2.7.2.4  ,  The  @Authenticate methods  is not invoked when  user login .  

      Here is my code. 

      @ResourceController
      public class UserController{
public static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(UserController.class);
 
ArrayList<DAVUser> users = new ArrayList<DAVUser>();
 
private static Map<String, String> map = new HashMap<String, String>();
private Map<String, DAVUser> uMap = new HashMap<String, DAVUser>();
 
@Name
@UniqueId
        public String getName(final UserController root){
         return "";
         }
        @Root
        public UserController getRoot() {
           System.out.println("+++++++++++++++++++++++++++++++++++++++++++++++");
               return this;
}
    
       @ChildrenOf
       @Users
       public List<DAVUser> getUsers(final UserController root){
        logger.info("call  List<User> getUsers(UserController root)");
        //return null;
        return this.users;
        }
    
        @ChildOf
public DAVUser getCurrUser(final UserController root, Request request,String userName) {
    logger.info("call  DAVUser getCurrUser(final UserController root, Request request,String userName) ");
   
    String name = null;
    if(request.getAuthorization()!= null && request.getAuthorization().getUser() != null){
    userName = request.getAuthorization().getUser();
    }else{
    StringTokenizer st=new StringTokenizer(request.getAbsolutePath(),"/");
    for(int i=0;i<2;i++){
     if(st.hasMoreTokens()){
     name = st.nextToken();
     if(!"webdav".equals(name)){
     userName = name;
     i++;
     }
     }
    }
    }
   
try {
if (null == uMap.get(userName)) {
DAVUser u = new DAVUser();
u.setLoginName(userName);
uMap.put(u.getLoginName(),u);
return u;
} else {
return uMap.get(userName);
}
} catch (Exception e) {
return uMap.get(userName);
}
}
/**
* Basic AUTH For WinXP (Basic)
*/
       @Authenticate
        public Boolean verifyBasicPassword(final DAVUser user, String password) {
       logger.info("XP");
    if(user.getSessionID() != null && isSessionAlive(user.getSessionID())){
    return true;
    }
    Organization org = getOrganization(user.getLoginName());
    if(org == null || org.getOrgId() == null)
    return false;
password = Coder.encrypt(password+user.getLoginName()+"8#d$Up2z");
LoginLogInfo loginLogInfo = new LoginLogInfo();
loginLogInfo.setClientIp(HttpManager.request().getRemoteAddr());
loginLogInfo.setForceLogin(true);
loginLogInfo.setClientType(ClientType.WEBDAV.getType());
try {
UsersWrapper usersWrapper = ServicePort.getInstance().getUsers().authenticate(org.getOrgId(), user.getLoginName(), password, loginLogInfo);
if(usersWrapper != null){
if (usersWrapper.getAuthStatus() == AuthStatus.SUCCESS.getStatus()) {
user.setSessionID(usersWrapper.getSessionId());
user.setId(usersWrapper.getUsers().getUuid());
map.put(user.getLoginName(), usersWrapper.getSessionId());
uMap.put(user.getLoginName(), user);
return true;
}else {
return false;
}
}
} catch (Exception e) {
e.printStackTrace();
return false;
}
return false;
        }
/**
* Digest AUTH for Windows7
*/
@Authenticate
       public Boolean verifyDigestPassword(DAVUser user, DigestResponse digest/*, Request request*/) {
logger.info("Win7");
logger.info("===================  authenticate verifyDigestPassword(User user, DigestResponse digest");
if(user.getSessionID() != null && isSessionAlive(user.getSessionID())){
logger.info("Session is Alive..");
    return true;
    }
Organization org = getOrganization(user.getLoginName());
if(org == null || org.getOrgId() == null)
    return false;
UsersWrapper userWrapper = ServicePort.getInstance().getUsers().getUsersWrapperByOrganizationUidAndLoginName(org.getOrgId(), user.getLoginName());
String mypasswd = Coder.decrypt(userWrapper.getUsers().getLoginPasswd());
String passwd = mypasswd.substring(0, mypasswd.length()-user.getLoginName().length()-8);
DigestGenerator gen = new DigestGenerator();
String actual = gen.generateDigest(digest, passwd);
        // compared requested password digest with persisted password digest or plain text password
if(actual.equalsIgnoreCase(digest.getResponseDigest())){
LoginLogInfo loginLogInfo = new LoginLogInfo();
loginLogInfo.setClientIp(HttpManager.request().getRemoteAddr());
loginLogInfo.setForceLogin(true);
loginLogInfo.setClientType(ClientType.WEBDAV.getType());
try {
UsersWrapper usersWrapper = ServicePort.getInstance().getUsers().authenticate(org.getOrgId(), user.getLoginName(), userWrapper.getUsers().getLoginPasswd(), loginLogInfo);
if(usersWrapper != null){
if (usersWrapper.getAuthStatus() == AuthStatus.USERNOTEXIST.getStatus()) {
return false;
} else if (usersWrapper.getAuthStatus() == AuthStatus.USERLOCKED.getStatus()) {
return false;
} else if (usersWrapper.getAuthStatus() == AuthStatus.PASSWORDERROR.getStatus()) {
return false;
} else if (usersWrapper.getAuthStatus() == AuthStatus.USERDISABLED.getStatus()) {
return false;
} else if (usersWrapper.getAuthStatus() == AuthStatus.USERLOGGED.getStatus()) {
return false;
} else {
user.setSessionID(usersWrapper.getSessionId());
user.setId(usersWrapper.getUsers().getUuid());
map.put(user.getLoginName(), usersWrapper.getSessionId());
uMap.put(user.getLoginName(), user);
return true;
}
}
} catch (Exception e) {
e.printStackTrace();
return false;
}
return false;
}else{
logger.warn("user Authentication failure!");
return false;
}
    }
@AccessControlList
    public List<AccessControlledResource.Priviledge> getUserPrivs(DAVUser target, DAVUser currentUser) {
logger.info("getUserPrivs: " + currentUser);
        if( target == currentUser ) {
        logger.info("target ==== Current");
        //logger.info("method:"+request.getMethod());
            return AccessControlledResource.READ_WRITE;
        } else {
        logger.warn("Target is not equals to Current");
            // This prevents read access to each others calendars
        return AccessControlledResource.READ_WRITE;
            
            // This gives read access to each others calendars
            //return AccessControlledResource.READ_CONTENT;
        }
    }
@Realm
public String getRealm() {
return "WebDav";
}
    
}
      

     The tomcat  debug message as below,  seems that both of  @Authenticate  method are not called .  

    

+++++++++++++++++++++++++++++++++++++++++++++++
18 四月 2017 18:51:30:224 INFO  io.milton.http.http11.auth.CookieAuthenticationHandler.supports(CookieAuthenticationHandler.java:96) - Found child handler who supports this request io.milton.http.http11.auth.DigestAuthenticationHandler@13bb3e9
18 四月 2017 18:51:30:224 DEBUG io.milton.http.http11.auth.DigestHelper.calculateResponse(DigestHelper.java:78) - nc: 00000001
18 四月 2017 18:51:30:225 INFO  com.huayang.hydms.webdav.controller.UserController.getUsers(UserController.java:61) - call  List<User> getUsers(UserController root)
18 四月 2017 18:51:30:225 DEBUG io.milton.http.annotated.AnnoResource.authenticate(AnnoResource.java:193) - authenticate(Digest): user=zhangsan was not found from annotated methods.
18 四月 2017 18:51:30:225 DEBUG io.milton.http.http11.auth.DigestGenerator.generateDigest(DigestGenerator.java:45) - user:zhangsan:realm:WebDav:null
18 四月 2017 18:51:30:226 DEBUG io.milton.http.annotated.AnnoResource.authenticate(AnnoResource.java:199) - authenticate(Digest): did not find a user from: io.milton.http.fs.SimpleSecurityManager@159fa0
18 四月 2017 18:51:30:227 INFO  io.milton.http.http11.auth.DigestAuthenticationHandler.authenticate(DigestAuthenticationHandler.java:95) - digest authentication failed from resource: class io.milton.http.annotated.AnnoCollectionResource -  for user: zhangsan
18 四月 2017 18:51:30:227 INFO  io.milton.http.http11.auth.CookieAuthenticationHandler.authenticate(CookieAuthenticationHandler.java:139) - Login failed by delegated handler: class io.milton.http.http11.auth.DigestAuthenticationHandler
18 四月 2017 18:51:30:227 WARN  io.milton.http.AuthenticationService._authenticate(AuthenticationService.java:106) - authentication failed by AuthenticationHandler:class io.milton.http.http11.auth.CookieAuthenticationHandler
18 四月 2017 18:51:30:227 INFO  io.milton.http.ResourceHandlerHelper.processResource(ResourceHandlerHelper.java:159) - authorisation failed. respond with: io.milton.http.http11.auth.LoginResponseHandler resource: io.milton.http.annotated.AnnoCollectionResource
18 四月 2017 18:51:30:227 INFO  io.milton.http.http11.auth.LoginResponseHandler.respondUnauthorised(LoginResponseHandler.java:93) - respondUnauthorised
18 四月 2017 18:51:30:227 INFO  io.milton.http.http11.DefaultHttp11ResponseHandler.respondUnauthorised(DefaultHttp11ResponseHandler.java:127) - respondUnauthorised: no authenticated user, so return status: HTTP/1.1 401
18 四月 2017 18:51:30:227 DEBUG io.milton.http.AuthenticationService.getChallenges(AuthenticationService.java:145) - challenge for auth: class io.milton.http.http11.auth.CookieAuthenticationHandler
18 四月 2017 18:51:30:228 DEBUG io.milton.http.StandardFilter.process(StandardFilter.java:54) - No response entity to send to client for method: PROPFIND
18 四月 2017 18:51:30:228 INFO  io.milton.http.HttpManager.process(HttpManager.java:162) - PROPFIND :: 10.211.55.3:8080///webdav/ finished 4ms, Status:HTTP/1.1 401, Length:null


This code is working  with Milton 2.6.1.1
       


在 2017-04-18 15:57:22,"Brad McEvoy" <[hidden email]> 写道:

Please upgrade to the latest milton, 2.7.2.4

I've just updated the downloads page to this version

Note that milton is now available for download from bintray

https://bintray.com/milton/Milton/milton/view


On 18/04/17 19:43, Eric Wei wrote:
Hi Brad, 

I previously  use Milton 2.6.1.1 in my project ,  and  today when I  try to update to current release Milton 2.6.5.3  ( I only  replace Milton jars )  ,  

There is an  authenticate error when user login  after updated 
      
When I return back to Milton 2.6.1.1  is working.  

The error message is as below : 


18 四月 2017 15:15:29:404 INFO  io.milton.http.HttpManager.process(HttpManager.java:141) - OPTIONS :: 10.211.55.3:8080///webdav/ start
18 四月 2017 15:15:29:420 DEBUG io.milton.http.carddav.AddressBookResourceTypeHelper.getSupportedLevels(AddressBookResourceTypeHelper.java:67) - getSupportedLevels
18 四月 2017 15:15:29:422 DEBUG io.milton.http.caldav.CalendarResourceTypeHelper.getSupportedLevels(CalendarResourceTypeHelper.java:86) - getSupportedLevels
18 四月 2017 15:15:29:429 DEBUG io.milton.http.StandardFilter.process(StandardFilter.java:53) - No response entity to send to client for method: OPTIONS
18 四月 2017 15:15:29:430 INFO  io.milton.http.HttpManager.process(HttpManager.java:162) - OPTIONS :: 10.211.55.3:8080///webdav/ finished 18ms, Status:HTTP/1.1 200 OK, Length:0
18 四月 2017 15:15:29:437 INFO  io.milton.http.HttpManager.process(HttpManager.java:141) - PROPFIND :: 10.211.55.3:8080///webdav/ start
18 四月 2017 15:15:29:439 DEBUG io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:223) - authorise: no logged in user, get ACL for anonymous access
18 四月 2017 15:15:29:439 WARN  io.milton.http.annotated.AccessControlListAnnotationHandler.directPrivs(AccessControlListAnnotationHandler.java:84) - No ACL methods were found
18 四月 2017 15:15:29:440 INFO  io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:243) - Authorisation declined for anonymous access
java.lang.NullPointerException
at io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:245)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:138)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:117)
at io.milton.http.ResourceHandlerHelper.processResource(ResourceHandlerHelper.java:135)
at io.milton.http.webdav.PropFindHandler.processResource(PropFindHandler.java:112)
at io.milton.http.ResourceHandlerHelper.process(ResourceHandlerHelper.java:118)
at io.milton.http.webdav.PropFindHandler.process(PropFindHandler.java:106)
at io.milton.http.StandardFilter.process(StandardFilter.java:49)
at io.milton.http.FilterChain.process(FilterChain.java:40)
at io.milton.http.HttpManager.process(HttpManager.java:158)
at io.milton.servlet.MiltonFilter.doMiltonProcessing(MiltonFilter.java:129)
at io.milton.servlet.MiltonFilter.doFilter(MiltonFilter.java:104)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
18 四月 2017 15:15:29:442 ERROR io.milton.http.StandardFilter.process(StandardFilter.java:73) - exception sending content
java.lang.NullPointerException
at io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:245)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:138)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:117)
at io.milton.http.ResourceHandlerHelper.processResource(ResourceHandlerHelper.java:135)
at io.milton.http.webdav.PropFindHandler.processResource(PropFindHandler.java:112)
at io.milton.http.ResourceHandlerHelper.process(ResourceHandlerHelper.java:118)
at io.milton.http.webdav.PropFindHandler.process(PropFindHandler.java:106)
at io.milton.http.StandardFilter.process(StandardFilter.java:49)
at io.milton.http.FilterChain.process(FilterChain.java:40)
at io.milton.http.HttpManager.process(HttpManager.java:158)
at io.milton.servlet.MiltonFilter.doMiltonProcessing(MiltonFilter.java:129)
at io.milton.servlet.MiltonFilter.doFilter(MiltonFilter.java:104)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
18 四月 2017 15:15:29:443 WARN  io.milton.servlet.ServletResponse.sendError(ServletResponse.java:121) - sendError: HTTP/1.1 500
18 四月 2017 15:15:29:443 INFO  io.milton.servlet.ServletResponse.sendError(ServletResponse.java:129) - Closed outputstream after sendError
18 四月 2017 15:15:29:444 INFO  io.milton.http.HttpManager.process(HttpManager.java:162) - PROPFIND :: 10.211.55.3:8080///webdav/ finished 7ms, Status:null, Length:null

     
Is there other works  to update to latest release except update the jar files ? 

Thanks & Best Regards,
ERic
       



 



_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users



 


_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users
Reply | Threaded
Open this post in threaded view
|

Re: Login Error when update Milton 2.7.2.4 from 2.6.1.1

bradmacnz

Looks like your method was called, but that user was not found:

18 四月 2017 18:51:30:225 INFO  com.huayang.hydms.webdav.controller.UserController.getUsers(UserController.java:61) - call  List<User> getUsers(UserController root)
18 四月 2017 18:51:30:225 DEBUG io.milton.http.annotated.AnnoResource.authenticate(AnnoResource.java:193) - authenticate(Digest): user=zhangsan was not found from annotated methods.



On 18/04/17 23:08, Eric Wei wrote:
Hi  Brad ,

      When I  update to Milton 2.7.2.4  ,  The  @Authenticate methods  is not invoked when  user login .  

      Here is my code. 

      @ResourceController
      public class UserController{
public static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(UserController.class);
 
ArrayList<DAVUser> users = new ArrayList<DAVUser>();
 
private static Map<String, String> map = new HashMap<String, String>();
private Map<String, DAVUser> uMap = new HashMap<String, DAVUser>();
 
@Name
@UniqueId
        public String getName(final UserController root){
         return "";
         }
        @Root
        public UserController getRoot() {
           System.out.println("+++++++++++++++++++++++++++++++++++++++++++++++");
               return this;
}
    
       @ChildrenOf
       @Users
       public List<DAVUser> getUsers(final UserController root){
        logger.info("call  List<User> getUsers(UserController root)");
        //return null;
        return this.users;
        }
    
        @ChildOf
public DAVUser getCurrUser(final UserController root, Request request,String userName) {
    logger.info("call  DAVUser getCurrUser(final UserController root, Request request,String userName) ");
   
    String name = null;
    if(request.getAuthorization()!= null && request.getAuthorization().getUser() != null){
    userName = request.getAuthorization().getUser();
    }else{
    StringTokenizer st=new StringTokenizer(request.getAbsolutePath(),"/");
    for(int i=0;i<2;i++){
     if(st.hasMoreTokens()){
     name = st.nextToken();
     if(!"webdav".equals(name)){
     userName = name;
     i++;
     }
     }
    }
    }
   
try {
if (null == uMap.get(userName)) {
DAVUser u = new DAVUser();
u.setLoginName(userName);
uMap.put(u.getLoginName(),u);
return u;
} else {
return uMap.get(userName);
}
} catch (Exception e) {
return uMap.get(userName);
}
}
/**
* Basic AUTH For WinXP (Basic)
*/
       @Authenticate
        public Boolean verifyBasicPassword(final DAVUser user, String password) {
       logger.info("XP");
    if(user.getSessionID() != null && isSessionAlive(user.getSessionID())){
    return true;
    }
    Organization org = getOrganization(user.getLoginName());
    if(org == null || org.getOrgId() == null)
    return false;
password = Coder.encrypt(password+user.getLoginName()+"8#d$Up2z");
LoginLogInfo loginLogInfo = new LoginLogInfo();
loginLogInfo.setClientIp(HttpManager.request().getRemoteAddr());
loginLogInfo.setForceLogin(true);
loginLogInfo.setClientType(ClientType.WEBDAV.getType());
try {
UsersWrapper usersWrapper = ServicePort.getInstance().getUsers().authenticate(org.getOrgId(), user.getLoginName(), password, loginLogInfo);
if(usersWrapper != null){
if (usersWrapper.getAuthStatus() == AuthStatus.SUCCESS.getStatus()) {
user.setSessionID(usersWrapper.getSessionId());
user.setId(usersWrapper.getUsers().getUuid());
map.put(user.getLoginName(), usersWrapper.getSessionId());
uMap.put(user.getLoginName(), user);
return true;
}else {
return false;
}
}
} catch (Exception e) {
e.printStackTrace();
return false;
}
return false;
        }
/**
* Digest AUTH for Windows7
*/
@Authenticate
       public Boolean verifyDigestPassword(DAVUser user, DigestResponse digest/*, Request request*/) {
logger.info("Win7");
logger.info("===================  authenticate verifyDigestPassword(User user, DigestResponse digest");
if(user.getSessionID() != null && isSessionAlive(user.getSessionID())){
logger.info("Session is Alive..");
    return true;
    }
Organization org = getOrganization(user.getLoginName());
if(org == null || org.getOrgId() == null)
    return false;
UsersWrapper userWrapper = ServicePort.getInstance().getUsers().getUsersWrapperByOrganizationUidAndLoginName(org.getOrgId(), user.getLoginName());
String mypasswd = Coder.decrypt(userWrapper.getUsers().getLoginPasswd());
String passwd = mypasswd.substring(0, mypasswd.length()-user.getLoginName().length()-8);
DigestGenerator gen = new DigestGenerator();
String actual = gen.generateDigest(digest, passwd);
        // compared requested password digest with persisted password digest or plain text password
if(actual.equalsIgnoreCase(digest.getResponseDigest())){
LoginLogInfo loginLogInfo = new LoginLogInfo();
loginLogInfo.setClientIp(HttpManager.request().getRemoteAddr());
loginLogInfo.setForceLogin(true);
loginLogInfo.setClientType(ClientType.WEBDAV.getType());
try {
UsersWrapper usersWrapper = ServicePort.getInstance().getUsers().authenticate(org.getOrgId(), user.getLoginName(), userWrapper.getUsers().getLoginPasswd(), loginLogInfo);
if(usersWrapper != null){
if (usersWrapper.getAuthStatus() == AuthStatus.USERNOTEXIST.getStatus()) {
return false;
} else if (usersWrapper.getAuthStatus() == AuthStatus.USERLOCKED.getStatus()) {
return false;
} else if (usersWrapper.getAuthStatus() == AuthStatus.PASSWORDERROR.getStatus()) {
return false;
} else if (usersWrapper.getAuthStatus() == AuthStatus.USERDISABLED.getStatus()) {
return false;
} else if (usersWrapper.getAuthStatus() == AuthStatus.USERLOGGED.getStatus()) {
return false;
} else {
user.setSessionID(usersWrapper.getSessionId());
user.setId(usersWrapper.getUsers().getUuid());
map.put(user.getLoginName(), usersWrapper.getSessionId());
uMap.put(user.getLoginName(), user);
return true;
}
}
} catch (Exception e) {
e.printStackTrace();
return false;
}
return false;
}else{
logger.warn("user Authentication failure!");
return false;
}
    }
@AccessControlList
    public List<AccessControlledResource.Priviledge> getUserPrivs(DAVUser target, DAVUser currentUser) {
logger.info("getUserPrivs: " + currentUser);
        if( target == currentUser ) {
        logger.info("target ==== Current");
        //logger.info("method:"+request.getMethod());
            return AccessControlledResource.READ_WRITE;
        } else {
        logger.warn("Target is not equals to Current");
            // This prevents read access to each others calendars
        return AccessControlledResource.READ_WRITE;
            
            // This gives read access to each others calendars
            //return AccessControlledResource.READ_CONTENT;
        }
    }
@Realm
public String getRealm() {
return "WebDav";
}
    
}
      

     The tomcat  debug message as below,  seems that both of  @Authenticate  method are not called .  

    

+++++++++++++++++++++++++++++++++++++++++++++++
18 四月 2017 18:51:30:224 INFO  io.milton.http.http11.auth.CookieAuthenticationHandler.supports(CookieAuthenticationHandler.java:96) - Found child handler who supports this request io.milton.http.http11.auth.DigestAuthenticationHandler@13bb3e9
18 四月 2017 18:51:30:224 DEBUG io.milton.http.http11.auth.DigestHelper.calculateResponse(DigestHelper.java:78) - nc: 00000001
18 四月 2017 18:51:30:225 INFO  com.huayang.hydms.webdav.controller.UserController.getUsers(UserController.java:61) - call  List<User> getUsers(UserController root)
18 四月 2017 18:51:30:225 DEBUG io.milton.http.annotated.AnnoResource.authenticate(AnnoResource.java:193) - authenticate(Digest): user=zhangsan was not found from annotated methods.
18 四月 2017 18:51:30:225 DEBUG io.milton.http.http11.auth.DigestGenerator.generateDigest(DigestGenerator.java:45) - user:zhangsan:realm:WebDav:null
18 四月 2017 18:51:30:226 DEBUG io.milton.http.annotated.AnnoResource.authenticate(AnnoResource.java:199) - authenticate(Digest): did not find a user from: io.milton.http.fs.SimpleSecurityManager@159fa0
18 四月 2017 18:51:30:227 INFO  io.milton.http.http11.auth.DigestAuthenticationHandler.authenticate(DigestAuthenticationHandler.java:95) - digest authentication failed from resource: class io.milton.http.annotated.AnnoCollectionResource -  for user: zhangsan
18 四月 2017 18:51:30:227 INFO  io.milton.http.http11.auth.CookieAuthenticationHandler.authenticate(CookieAuthenticationHandler.java:139) - Login failed by delegated handler: class io.milton.http.http11.auth.DigestAuthenticationHandler
18 四月 2017 18:51:30:227 WARN  io.milton.http.AuthenticationService._authenticate(AuthenticationService.java:106) - authentication failed by AuthenticationHandler:class io.milton.http.http11.auth.CookieAuthenticationHandler
18 四月 2017 18:51:30:227 INFO  io.milton.http.ResourceHandlerHelper.processResource(ResourceHandlerHelper.java:159) - authorisation failed. respond with: io.milton.http.http11.auth.LoginResponseHandler resource: io.milton.http.annotated.AnnoCollectionResource
18 四月 2017 18:51:30:227 INFO  io.milton.http.http11.auth.LoginResponseHandler.respondUnauthorised(LoginResponseHandler.java:93) - respondUnauthorised
18 四月 2017 18:51:30:227 INFO  io.milton.http.http11.DefaultHttp11ResponseHandler.respondUnauthorised(DefaultHttp11ResponseHandler.java:127) - respondUnauthorised: no authenticated user, so return status: HTTP/1.1 401
18 四月 2017 18:51:30:227 DEBUG io.milton.http.AuthenticationService.getChallenges(AuthenticationService.java:145) - challenge for auth: class io.milton.http.http11.auth.CookieAuthenticationHandler
18 四月 2017 18:51:30:228 DEBUG io.milton.http.StandardFilter.process(StandardFilter.java:54) - No response entity to send to client for method: PROPFIND
18 四月 2017 18:51:30:228 INFO  io.milton.http.HttpManager.process(HttpManager.java:162) - PROPFIND :: 10.211.55.3:8080///webdav/ finished 4ms, Status:HTTP/1.1 401, Length:null


This code is working  with Milton 2.6.1.1
       


在 2017-04-18 15:57:22,"Brad McEvoy" [hidden email] 写道:

Please upgrade to the latest milton, 2.7.2.4

I've just updated the downloads page to this version

Note that milton is now available for download from bintray

https://bintray.com/milton/Milton/milton/view


On 18/04/17 19:43, Eric Wei wrote:
Hi Brad, 

I previously  use Milton 2.6.1.1 in my project ,  and  today when I  try to update to current release Milton 2.6.5.3  ( I only  replace Milton jars )  ,  

There is an  authenticate error when user login  after updated 
      
When I return back to Milton 2.6.1.1  is working.  

The error message is as below : 


18 四月 2017 15:15:29:404 INFO  io.milton.http.HttpManager.process(HttpManager.java:141) - OPTIONS :: 10.211.55.3:8080///webdav/ start
18 四月 2017 15:15:29:420 DEBUG io.milton.http.carddav.AddressBookResourceTypeHelper.getSupportedLevels(AddressBookResourceTypeHelper.java:67) - getSupportedLevels
18 四月 2017 15:15:29:422 DEBUG io.milton.http.caldav.CalendarResourceTypeHelper.getSupportedLevels(CalendarResourceTypeHelper.java:86) - getSupportedLevels
18 四月 2017 15:15:29:429 DEBUG io.milton.http.StandardFilter.process(StandardFilter.java:53) - No response entity to send to client for method: OPTIONS
18 四月 2017 15:15:29:430 INFO  io.milton.http.HttpManager.process(HttpManager.java:162) - OPTIONS :: 10.211.55.3:8080///webdav/ finished 18ms, Status:HTTP/1.1 200 OK, Length:0
18 四月 2017 15:15:29:437 INFO  io.milton.http.HttpManager.process(HttpManager.java:141) - PROPFIND :: 10.211.55.3:8080///webdav/ start
18 四月 2017 15:15:29:439 DEBUG io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:223) - authorise: no logged in user, get ACL for anonymous access
18 四月 2017 15:15:29:439 WARN  io.milton.http.annotated.AccessControlListAnnotationHandler.directPrivs(AccessControlListAnnotationHandler.java:84) - No ACL methods were found
18 四月 2017 15:15:29:440 INFO  io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:243) - Authorisation declined for anonymous access
java.lang.NullPointerException
at io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:245)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:138)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:117)
at io.milton.http.ResourceHandlerHelper.processResource(ResourceHandlerHelper.java:135)
at io.milton.http.webdav.PropFindHandler.processResource(PropFindHandler.java:112)
at io.milton.http.ResourceHandlerHelper.process(ResourceHandlerHelper.java:118)
at io.milton.http.webdav.PropFindHandler.process(PropFindHandler.java:106)
at io.milton.http.StandardFilter.process(StandardFilter.java:49)
at io.milton.http.FilterChain.process(FilterChain.java:40)
at io.milton.http.HttpManager.process(HttpManager.java:158)
at io.milton.servlet.MiltonFilter.doMiltonProcessing(MiltonFilter.java:129)
at io.milton.servlet.MiltonFilter.doFilter(MiltonFilter.java:104)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
18 四月 2017 15:15:29:442 ERROR io.milton.http.StandardFilter.process(StandardFilter.java:73) - exception sending content
java.lang.NullPointerException
at io.milton.http.annotated.AnnoResource.authorise(AnnoResource.java:245)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:138)
at io.milton.http.HandlerHelper.checkAuthorisation(HandlerHelper.java:117)
at io.milton.http.ResourceHandlerHelper.processResource(ResourceHandlerHelper.java:135)
at io.milton.http.webdav.PropFindHandler.processResource(PropFindHandler.java:112)
at io.milton.http.ResourceHandlerHelper.process(ResourceHandlerHelper.java:118)
at io.milton.http.webdav.PropFindHandler.process(PropFindHandler.java:106)
at io.milton.http.StandardFilter.process(StandardFilter.java:49)
at io.milton.http.FilterChain.process(FilterChain.java:40)
at io.milton.http.HttpManager.process(HttpManager.java:158)
at io.milton.servlet.MiltonFilter.doMiltonProcessing(MiltonFilter.java:129)
at io.milton.servlet.MiltonFilter.doFilter(MiltonFilter.java:104)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
18 四月 2017 15:15:29:443 WARN  io.milton.servlet.ServletResponse.sendError(ServletResponse.java:121) - sendError: HTTP/1.1 500
18 四月 2017 15:15:29:443 INFO  io.milton.servlet.ServletResponse.sendError(ServletResponse.java:129) - Closed outputstream after sendError
18 四月 2017 15:15:29:444 INFO  io.milton.http.HttpManager.process(HttpManager.java:162) - PROPFIND :: 10.211.55.3:8080///webdav/ finished 7ms, Status:null, Length:null

     
Is there other works  to update to latest release except update the jar files ? 

Thanks & Best Regards,
ERic
       



 



_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users



 



_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users


_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users
Reply | Threaded
Open this post in threaded view
|

Re: Login Error when update Milton 2.6.5.3 from 2.6.1.1

Andreas Joseph Krogh-2
In reply to this post by bradmacnz
På tirsdag 18. april 2017 kl. 09:57:22, skrev Brad McEvoy <[hidden email]>:

Please upgrade to the latest milton, 2.7.2.4

I've just updated the downloads page to this version

Note that milton is now available for download from bintray

https://bintray.com/milton/Milton/milton/view

 
Sorry for hijacking this thread, but I'm unable to upgrade to 2.7.2.4: http://milton.io/maven/io/milton/milton-server-ent/2.7.2.4/milton-server-ent-2.7.2.4.pom
yields 404.
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
 

_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users
Reply | Threaded
Open this post in threaded view
|

Re: Login Error when update Milton 2.6.5.3 from 2.6.1.1

bradmacnz

Hi Andreas,

Due to popular demand Milton's self hosted Maven repo has been abandoned in favour of bintray. The old repo is still there, but new versions arent being published to it.

I've updated the details on the downloads page - http://milton.io/downloads/index.html

And the bintray maven details are here - https://bintray.com/milton/Milton/milton/view

Regards,

Brad


On 19/04/17 10:22, Andreas Joseph Krogh wrote:
På tirsdag 18. april 2017 kl. 09:57:22, skrev Brad McEvoy <[hidden email]>:

Please upgrade to the latest milton, 2.7.2.4

I've just updated the downloads page to this version

Note that milton is now available for download from bintray

https://bintray.com/milton/Milton/milton/view

 
Sorry for hijacking this thread, but I'm unable to upgrade to 2.7.2.4: http://milton.io/maven/io/milton/milton-server-ent/2.7.2.4/milton-server-ent-2.7.2.4.pom
yields 404.
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
 


_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users


_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users
Reply | Threaded
Open this post in threaded view
|

Re: Login Error when update Milton 2.6.5.3 from 2.6.1.1

Andreas Joseph Krogh-2
På onsdag 19. april 2017 kl. 00:25:36, skrev Brad McEvoy <[hidden email]>:

Hi Andreas,

Due to popular demand Milton's self hosted Maven repo has been abandoned in favour of bintray. The old repo is still there, but new versions arent being published to it.

I've updated the details on the downloads page - http://milton.io/downloads/index.html

And the bintray maven details are here - https://bintray.com/milton/Milton/milton/view

Regards,

Brad

Ah, thanks!
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
 

_______________________________________________
Milton-users mailing list
[hidden email]
http://lists.justthe.net/mailman/listinfo/milton-users