You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mime4j-dev@james.apache.org by "Wim (JIRA)" <mi...@james.apache.org> on 2009/12/15 09:14:18 UTC

[jira] Created: (MIME4J-142) Decoderutil and regexdecoderutil crash on string.

Decoderutil and regexdecoderutil crash on string.
-------------------------------------------------

                 Key: MIME4J-142
                 URL: https://issues.apache.org/jira/browse/MIME4J-142
             Project: JAMES Mime4j
          Issue Type: Bug
         Environment: java 5, win7
            Reporter: Wim


Decoderutil & regexdecoderutil crashes on this subject line:

=?utf-8?Q?variable=20${target.nl}?=


RegexDecoderUtil.decodeEncodedWords("=?utf-8?Q?variable=20${target.nl}?=");

Illegal group reference
	at java.util.regex.Matcher.appendReplacement(Unknown Source)
	at org.apache.james.mime4j.codec.DecoderUtil.decodeEncodedWords(DecoderUtil.java:160)

and

java.lang.IllegalArgumentException: Illegal group reference
	at java.util.regex.Matcher.appendReplacement(Unknown Source)
	at org.apache.james.mime4j.codec.RegexDecoderUtil.decodeEncodedWords(RegexDecoderUtil.java:36)
	at org.eclipse.ecf.salvo.ui.internal.editor.ArticlePaneLabelProvider.getColumnText(ArticlePaneLabelProvider.java:72)

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


Re: [jira] Commented: (MIME4J-142) Decoderutil and regexdecoderutil crash on string.

Posted by Markus Wiederkehr <ma...@gmail.com>.
On Tue, Dec 15, 2009 at 7:53 PM, Wim Jongman <wi...@gmail.com> wrote:
> Hi Markus,
>
> I got the regexdecoderutil from this bug [1] and also the decoderutil. This
> was probably not the last source then. I assumed that it was. I will check
> out from SVN
>
> [1] http://issues.apache.org/jira/browse/MIME4J-138

That explains it. It was mime4j-138.patch that got committed to resolve #138.

Cheers,
Markus


>
> On Tue, Dec 15, 2009 at 1:27 PM, Markus Wiederkehr (JIRA) <
> mime4j-dev@james.apache.org> wrote:
>
>>
>>    [
>> https://issues.apache.org/jira/browse/MIME4J-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790721#action_12790721]
>>
>> Markus Wiederkehr commented on MIME4J-142:
>> ------------------------------------------
>>
>> I don't know what version you are referring to but there is no class called
>> RegexDecoderUtil in SVN trunk of Mime4j.
>>
>> Also I have committed a unit test that shows that
>> DecoderUtil.decodeEncodedWords() works with that subject line.
>>
>> > Decoderutil and regexdecoderutil crash on string.
>> > -------------------------------------------------
>> >
>> >                 Key: MIME4J-142
>> >                 URL: https://issues.apache.org/jira/browse/MIME4J-142
>> >             Project: JAMES Mime4j
>> >          Issue Type: Bug
>> >         Environment: java 5, win7
>> >            Reporter: Wim
>> >
>> > Decoderutil & regexdecoderutil crashes on this subject line:
>> > =?utf-8?Q?variable=20${target.nl}?=
>> > RegexDecoderUtil.decodeEncodedWords("=?utf-8?Q?variable=20${target.nl
>> }?=");
>> > Illegal group reference
>> >       at java.util.regex.Matcher.appendReplacement(Unknown Source)
>> >       at
>> org.apache.james.mime4j.codec.DecoderUtil.decodeEncodedWords(DecoderUtil.java:160)
>> > and
>> > java.lang.IllegalArgumentException: Illegal group reference
>> >       at java.util.regex.Matcher.appendReplacement(Unknown Source)
>> >       at
>> org.apache.james.mime4j.codec.RegexDecoderUtil.decodeEncodedWords(RegexDecoderUtil.java:36)
>> >       at
>> org.eclipse.ecf.salvo.ui.internal.editor.ArticlePaneLabelProvider.getColumnText(ArticlePaneLabelProvider.java:72)
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.

Re: [jira] Commented: (MIME4J-142) Decoderutil and regexdecoderutil crash on string.

Posted by Wim Jongman <wi...@gmail.com>.
Hi Markus,

I got the regexdecoderutil from this bug [1] and also the decoderutil. This
was probably not the last source then. I assumed that it was. I will check
out from SVN

[1] http://issues.apache.org/jira/browse/MIME4J-138

On Tue, Dec 15, 2009 at 1:27 PM, Markus Wiederkehr (JIRA) <
mime4j-dev@james.apache.org> wrote:

>
>    [
> https://issues.apache.org/jira/browse/MIME4J-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790721#action_12790721]
>
> Markus Wiederkehr commented on MIME4J-142:
> ------------------------------------------
>
> I don't know what version you are referring to but there is no class called
> RegexDecoderUtil in SVN trunk of Mime4j.
>
> Also I have committed a unit test that shows that
> DecoderUtil.decodeEncodedWords() works with that subject line.
>
> > Decoderutil and regexdecoderutil crash on string.
> > -------------------------------------------------
> >
> >                 Key: MIME4J-142
> >                 URL: https://issues.apache.org/jira/browse/MIME4J-142
> >             Project: JAMES Mime4j
> >          Issue Type: Bug
> >         Environment: java 5, win7
> >            Reporter: Wim
> >
> > Decoderutil & regexdecoderutil crashes on this subject line:
> > =?utf-8?Q?variable=20${target.nl}?=
> > RegexDecoderUtil.decodeEncodedWords("=?utf-8?Q?variable=20${target.nl
> }?=");
> > Illegal group reference
> >       at java.util.regex.Matcher.appendReplacement(Unknown Source)
> >       at
> org.apache.james.mime4j.codec.DecoderUtil.decodeEncodedWords(DecoderUtil.java:160)
> > and
> > java.lang.IllegalArgumentException: Illegal group reference
> >       at java.util.regex.Matcher.appendReplacement(Unknown Source)
> >       at
> org.apache.james.mime4j.codec.RegexDecoderUtil.decodeEncodedWords(RegexDecoderUtil.java:36)
> >       at
> org.eclipse.ecf.salvo.ui.internal.editor.ArticlePaneLabelProvider.getColumnText(ArticlePaneLabelProvider.java:72)
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

[jira] Resolved: (MIME4J-142) Decoderutil and regexdecoderutil crash on string.

Posted by "Oleg Kalnichevski (JIRA)" <mi...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/MIME4J-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved MIME4J-142.
--------------------------------------

    Resolution: Invalid

Closing as invalid

Oleg

> Decoderutil and regexdecoderutil crash on string.
> -------------------------------------------------
>
>                 Key: MIME4J-142
>                 URL: https://issues.apache.org/jira/browse/MIME4J-142
>             Project: JAMES Mime4j
>          Issue Type: Bug
>         Environment: java 5, win7
>            Reporter: Wim
>
> Decoderutil & regexdecoderutil crashes on this subject line:
> =?utf-8?Q?variable=20${target.nl}?=
> RegexDecoderUtil.decodeEncodedWords("=?utf-8?Q?variable=20${target.nl}?=");
> Illegal group reference
> 	at java.util.regex.Matcher.appendReplacement(Unknown Source)
> 	at org.apache.james.mime4j.codec.DecoderUtil.decodeEncodedWords(DecoderUtil.java:160)
> and
> java.lang.IllegalArgumentException: Illegal group reference
> 	at java.util.regex.Matcher.appendReplacement(Unknown Source)
> 	at org.apache.james.mime4j.codec.RegexDecoderUtil.decodeEncodedWords(RegexDecoderUtil.java:36)
> 	at org.eclipse.ecf.salvo.ui.internal.editor.ArticlePaneLabelProvider.getColumnText(ArticlePaneLabelProvider.java:72)

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


[jira] Commented: (MIME4J-142) Decoderutil and regexdecoderutil crash on string.

Posted by "Markus Wiederkehr (JIRA)" <mi...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/MIME4J-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790721#action_12790721 ] 

Markus Wiederkehr commented on MIME4J-142:
------------------------------------------

I don't know what version you are referring to but there is no class called RegexDecoderUtil in SVN trunk of Mime4j.

Also I have committed a unit test that shows that DecoderUtil.decodeEncodedWords() works with that subject line.

> Decoderutil and regexdecoderutil crash on string.
> -------------------------------------------------
>
>                 Key: MIME4J-142
>                 URL: https://issues.apache.org/jira/browse/MIME4J-142
>             Project: JAMES Mime4j
>          Issue Type: Bug
>         Environment: java 5, win7
>            Reporter: Wim
>
> Decoderutil & regexdecoderutil crashes on this subject line:
> =?utf-8?Q?variable=20${target.nl}?=
> RegexDecoderUtil.decodeEncodedWords("=?utf-8?Q?variable=20${target.nl}?=");
> Illegal group reference
> 	at java.util.regex.Matcher.appendReplacement(Unknown Source)
> 	at org.apache.james.mime4j.codec.DecoderUtil.decodeEncodedWords(DecoderUtil.java:160)
> and
> java.lang.IllegalArgumentException: Illegal group reference
> 	at java.util.regex.Matcher.appendReplacement(Unknown Source)
> 	at org.apache.james.mime4j.codec.RegexDecoderUtil.decodeEncodedWords(RegexDecoderUtil.java:36)
> 	at org.eclipse.ecf.salvo.ui.internal.editor.ArticlePaneLabelProvider.getColumnText(ArticlePaneLabelProvider.java:72)

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