camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wojciech Durczynski (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CAMEL-777) Allow '@' in usernames.
Date Fri, 01 Aug 2008 14:33:00 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44684#action_44684
] 

avatah edited comment on CAMEL-777 at 8/1/08 7:32 AM:
-------------------------------------------------------------------

I use camel 1.4 and javax.mail 1.4.1.
If I define camel endpoint with '@' in username there is an exception during sending mail:
org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException:
Illegal character in domain in string ``Wojciech.Durczynski@server.com@smtp.server.com''
	at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:363)
	at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:346)
	at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:46)
	at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
	at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:47)
	at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:149)
	at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:86)
	at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:84)
	at org.apache.camel.impl.DefaultProducerTemplate.sendBodyAndHeader(DefaultProducerTemplate.java:122)
	at org.apache.camel.impl.DefaultProducerTemplate.sendBodyAndHeader(DefaultProducerTemplate.java:117)
	at com.comarch.p7samples.minis.password.PasswordPlugin$1.onSubmit(PasswordPlugin.java:92)
	at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1355)
	at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:810)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)
	at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
	at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
	at com.comarch.p7.ui.core.application.BaseRequestCycleProcessor.processEvents(BaseRequestCycleProcessor.java:20)
	at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1171)
	at org.apache.wicket.RequestCycle.step(RequestCycle.java:1248)
	at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
	at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
	at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
	at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:145)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at com.comarch.p7.ui.webscope.ListenerServlet$FilterChainImpl.doFilter(ListenerServlet.java:206)
	at com.comarch.p7.ui.webscope.ListenerServlet.service(ListenerServlet.java:85)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at org.ops4j.pax.web.service.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:66)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
	at org.ops4j.pax.web.service.internal.HttpServiceContext.handle(HttpServiceContext.java:107)
	at org.ops4j.pax.web.service.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: javax.mail.internet.AddressException: Illegal character in domain in string ``Wojciech.Durczynski@server.com@smtp.server.com''
	at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:947)
	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:833)
	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:569)
	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:546)
	at javax.mail.internet.MimeMessage.setRecipients(MimeMessage.java:607)
	at org.apache.camel.component.mail.MailBinding.populateMailMessage(MailBinding.java:53)
	at org.apache.camel.component.mail.MailProducer$1.prepare(MailProducer.java:48)
	at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:354)
	... 56 more

      was (Author: avatah):
    I use camel 1.4 and javax.mail 1.4.1.
If I define camel endpoint with '@' in username there is an exception during sending mail:
org.springframework.mail.MailParseException: Could not parse mail; nested exception is javax.mail.internet.AddressException:
Illegal character in domain in string ``Wojciech.Durczynski@server.com@smtp.comarch.com''
	at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:363)
	at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:346)
	at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:46)
	at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
	at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:47)
	at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:149)
	at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:86)
	at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:84)
	at org.apache.camel.impl.DefaultProducerTemplate.sendBodyAndHeader(DefaultProducerTemplate.java:122)
	at org.apache.camel.impl.DefaultProducerTemplate.sendBodyAndHeader(DefaultProducerTemplate.java:117)
	at com.comarch.p7samples.minis.password.PasswordPlugin$1.onSubmit(PasswordPlugin.java:92)
	at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1355)
	at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:810)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)
	at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
	at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
	at com.comarch.p7.ui.core.application.BaseRequestCycleProcessor.processEvents(BaseRequestCycleProcessor.java:20)
	at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1171)
	at org.apache.wicket.RequestCycle.step(RequestCycle.java:1248)
	at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
	at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
	at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
	at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:145)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at com.comarch.p7.ui.webscope.ListenerServlet$FilterChainImpl.doFilter(ListenerServlet.java:206)
	at com.comarch.p7.ui.webscope.ListenerServlet.service(ListenerServlet.java:85)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
	at org.ops4j.pax.web.service.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:66)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
	at org.ops4j.pax.web.service.internal.HttpServiceContext.handle(HttpServiceContext.java:107)
	at org.ops4j.pax.web.service.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: javax.mail.internet.AddressException: Illegal character in domain in string ``Wojciech.Durczynski@server.com@smtp.comarch.com''
	at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:947)
	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:833)
	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:569)
	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:546)
	at javax.mail.internet.MimeMessage.setRecipients(MimeMessage.java:607)
	at org.apache.camel.component.mail.MailBinding.populateMailMessage(MailBinding.java:53)
	at org.apache.camel.component.mail.MailProducer$1.prepare(MailProducer.java:48)
	at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:354)
	... 56 more
  
> Allow '@' in usernames.
> -----------------------
>
>                 Key: CAMEL-777
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-777
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-mail
>            Reporter: Wojciech Durczynski
>
> Many servers use 'username'@'servername' as a login name. Camel-mail doesn't allow this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message