Thespica opened a new issue, #2752:
URL: https://github.com/apache/incubator-hugegraph/issues/2752

   ### Feature Description (功能描述)
   
   [Client's login 
test](https://github.com/apache/incubator-hugegraph-toolchain/pull/657/commits/508c7c69881f5ae5d550d17c0577f4f18a172e2f)
 was blocked by this problem, showing errer:
   
   ```
   java.lang.AssertionError: 
   Expected: a string containing "Incorrect username or password"
        but: was "Unrecognized field "token_expire" (class 
org.apache.hugegraph.api.auth.LoginAPI$JsonLogin), not marked as ignorable (2 
known properties: "user_name", "user_password"])
    at [Source: 
(org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream);
 line: 1, column: 70] (through reference chain: 
org.apache.hugegraph.api.auth.LoginAPI$JsonLogin["token_expire"])"
   ```
   
   CURRENT implementation(not only this method):
   
https://github.com/apache/incubator-hugegraph/blob/42f9a7638ba0d3d75744c69690938c4ca1074e56/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/auth/LoginAPI.java#L61-L79
   
   NEW implementation for refer(not only this method):
   
![Image](https://github.com/user-attachments/assets/7d2cab34-8ed1-4056-b997-146901981533)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to