Re: [ANNOUNCE] Apache Commons Net 3.11.0

Stuart Maclean <[email protected]> Fri, 31 May 2024 12:11:11 -0700
Newsgroups gmane.comp.jakarta.commons.user
Message-ID <[email protected]>
I have an app that uses Commons Net. It talks IMAP, via OAuth2, to a MS 
Exchange Server.  With Commons Net 3.8.0 and 3.10.0, it works fine. I 
just saw 3.11.0 was released, and wanted to try it. I was alarmed to see 
it fail with my app. The ONLY change made to the build was in my 
pom.xml, from this

     <dependency>
       <groupId>commons-net</groupId>
       <artifactId>commons-net</artifactId>
       <version>3.8.0</version>
     </dependency>

     <dependency>
       <groupId>commons-net</groupId>
       <artifactId>commons-net</artifactId>
       <version>3.11.0</version>
     </dependency>

With 3.11.0, the app reports

$ ./mailRetriever -e

org.apache.commons.net.MalformedServerReplyException: Received 
unexpected IMAP protocol response from server: '* OK The Microsoft 
Exchange IMAP4 service is ready. [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]'.
     at 
org.apache.commons.net.imap.IMAPReply.getReplyCode(IMAPReply.java:119)
     at 
org.apache.commons.net.imap.IMAPReply.getUntaggedReplyCode(IMAPReply.java:130)
     at org.apache.commons.net.imap.IMAP.getReply(IMAP.java:288)
     at org.apache.commons.net.imap.IMAP._connectAction_(IMAP.java:152)

The app is trying to do an 'INBOX EXAMINE' request.

I do see mention made of IMAPReply in the 3.11.0 release notes. Maybe I 
need to change my own code to use the IMAP objects differently?? Or 
maybe the flaw is the server end??

Stu


On 5/31/24 10:35, Gary Gregory wrote:
> The Apache Commons Net team is pleased to announce the release of
> Apache Commons Net 3.11.0.
>
> Apache Commons Net library contains a collection of network utilities
> and protocol implementations. Supported protocols include Echo,
> Finger, FTP, NNTP, NTP, POP3(S), SMTP(S), Telnet, and Whois.
>
> Maintenance and bug fix release (Java 8 or above).
>
> For complete information on Apache Commons Net, including instructions
> on how to submit bug reports, patches, or suggestions for improvement,
> see the Apache Commons Net website:
>
> https://commons.apache.org/proper/commons-net/
>
> Download page: https://commons.apache.org/proper/commons-net/download_net.cgi
>
> Historical list of changes:
> https://commons.apache.org/proper/commons-net/changes-report.html
>
> Enjoy!
> Gary Gregory
> -Apache Commons Net team
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>