Need to see if your shared folder is taking up space on your dropbox đšâđ»? Find out how to check here.
Forum Discussion
luigiafassina
2 months agoExplorer | Level 4
Which is the java version supported by dbx sdk 7.0.0
Hi, I would like to upgrade dropbox-core-sdk from version 4.0.1 to 7.0.0. Currently, I'm using Java JDK 8. According to the Dropbox documentation, this SDK appears to be compatible with JDK 8. Howev...
- 2 months ago
Regarding your implementation, you can continue testing your current flow with your custom 'SessionStore' setup. If there are any compatibility issues, those would typically appear during runtime or while handling requests through your servlet environment.
The certificate update taking effect in January isnât related to the behavior of your integration, so it shouldnât impact your current testing.
luigiafassina
2 months agoExplorer | Level 4
Thanks for your answer.
One more question to solve my doubts..
This is the only place in my code where I need jakarta.servlet.
private DbxSessionStore getSessionStore(final HttpServletRequest request) {
HttpSession session = request.getSession(true);
String sessionKey = "dropbox-auth-csrf-token";
return new DbxStandardSessionStore(session, sessionKey);
}
I created a custom CustomDbxSessionStore class that implements DbxSessionStore but still uses javax.servlet.http.HttpSession.
import com.dropbox.core.DbxSessionStore;
import javax.servlet.http.HttpSession;
/**
* Custom implementation of DbxSessionStore that uses javax.servlet instead of jakarta.servlet
*/
public class CustomDbxSessionStore implements DbxSessionStore {
private final HttpSession session;
private final String sessionKey;
public CustomDbxSessionStore(HttpSession session, String sessionKey) {
this.session = session;
this.sessionKey = sessionKey;
}
@Override
public String get() {
return (String) session.getAttribute(sessionKey);
}
@Override
public void set(String value) {
session.setAttribute(sessionKey, value);
}
@Override
public void clear() {
session.removeAttribute(sessionKey);
}
}and I change the getSessionStore(..) method for using this class
private DbxSessionStore getSessionStore(final HttpServletRequest request) {
HttpSession session = request.getSession(true);
String sessionKey = "dropbox-auth-csrf-token";
return new CustomDbxSessionStore(session, sessionKey);
}It looks like this will allow me to use JDK 8 at runtime, even with the updated SDK.
Dropbox has authenticated me and allows me to import my files. Can you spot any potential issues? Can you suggest some tests to see if something isn't working? My app asks for permission from Dropbox, then imports the files, and if anything changes in Dropbox, it receives notifications and manages them.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!