Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33574

Email-ext plugin could not handle attachments' file name that contains non-English characters.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • email-ext-plugin
    • None

      Here is my config:

      The "*.txt" would match many non-English file name.

      # ls *.txt
      个人中心页面.txt      已使用红包.txt        我的技能.txt                我的服务单(验收中).txt  我的需求(新需求).txt  服务市场宣传页.txt    测试仪列表中间页.txt  订购测试仪.txt        购物车列表页面.txt
      保养统计.txt          已过期红包.txt        我的服务单(已关闭).txt      我的测试.txt            我的需求(未付款).txt  服务市场(已完成).txt  浏览记录.txt          订购采集器.txt
      保养记录.txt          师傅到商城首页.txt    我的服务单(开工中).txt      我的测试仪.txt          我的需求(洽谈中).txt  服务市场(执行中).txt  登陆页面.txt          认证中心页面.txt
      关于中创.txt          我的共享列表首页.txt  我的服务单(待开工).txt      我的设备列表首页.txt    我的需求(确认中).txt  服务市场(新需求).txt  监测宣传页.txt        设备详情页.txt
      关注品牌.txt          我的关注.txt          我的服务单(所有服务单).txt  我的需求(已关闭).txt    我的需求页展示.txt    未使用红包.txt        红包列表页展示.txt    评价晒单(已评价).txt
      压缩机列表中间页.txt  我的发票页面.txt      我的服务单(支付中).txt      我的需求(待验收).txt    报警统计.txt          机器分布.txt          节能宣传页.txt        评价晒单(待评价).txt
      品牌中心列表页面.txt  我的地址页面.txt      我的服务单(确认中).txt      我的需求(所有需求).txt  报警跟踪.txt          机器列表页展示.txt    订单列表页面.txt      评价晒单页展示.txt
      增票资质页面.txt      我的师傅到.txt        我的服务单页展示.txt        我的需求(执行中).txt    故障助手.txt          机器动态.txt          订单详情页.txt        购买历史.txt
      

      Finally in my email, I find the attachments' file name would not display.

          [JENKINS-33574] Email-ext plugin could not handle attachments' file name that contains non-English characters.

          Code changed in jenkins
          User: Alex Earl
          Path:
          pom.xml
          src/main/java/hudson/plugins/emailext/EmailExtensionPlugin.java
          src/test/java/hudson/plugins/emailext/AttachmentUtilsTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/4edc42b17f6af7392a8a218325e96a3e3d06c504
          Log:
          Fix JENKINS-33574

          Set system property so that Javamail encodes the names of attachments if necessary

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: pom.xml src/main/java/hudson/plugins/emailext/EmailExtensionPlugin.java src/test/java/hudson/plugins/emailext/AttachmentUtilsTest.java http://jenkins-ci.org/commit/email-ext-plugin/4edc42b17f6af7392a8a218325e96a3e3d06c504 Log: Fix JENKINS-33574 Set system property so that Javamail encodes the names of attachments if necessary

          Alex Earl added a comment -

          Fix will be in next release.

          Alex Earl added a comment - Fix will be in next release.

          Sorin Sbarnea added a comment -

          Somehow master branch is now broken because the test for this bug fails.

          Sorin Sbarnea added a comment - Somehow master branch is now broken because the test for this bug fails.

          Sorin Sbarnea added a comment -

          Reopening because master is broken due to the test used for this bug.

          Sorin Sbarnea added a comment - Reopening because master is broken due to the test used for this bug.

          Code changed in jenkins
          User: Sorin Sbarnea
          Path:
          pom.xml
          src/test/java/hudson/plugins/emailext/AttachmentUtilsTest.java
          http://jenkins-ci.org/commit/email-ext-plugin/3e74855770efaf70afad14518ffdfe1db8dcb07e
          Log:
          JENKINS-33574 fix unicode attachments (#159)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sorin Sbarnea Path: pom.xml src/test/java/hudson/plugins/emailext/AttachmentUtilsTest.java http://jenkins-ci.org/commit/email-ext-plugin/3e74855770efaf70afad14518ffdfe1db8dcb07e Log: JENKINS-33574 fix unicode attachments (#159)

            davidvanlaatum David van Laatum
            abcfy2 feng yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: