Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7934

XWikiAttachment#setFilename modify the file name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 4.0
    • Old Core
    • None
    • Unknown

    Description

          public void setFilename(String filename)
          {
              filename = filename.replaceAll("\\+", " ");
              if (!filename.equals(this.filename)) {
                  setMetaDataDirty(true);
                  this.filename = filename;
              }
              this.reference = null;
          }
      

      Does not make any sense, can hardly thing of a worst design. There is not even a comment...

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: