Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12386

file:onlyname.noext gives wrong results

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 2.20.2
    • Fix Version/s: 2.22.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I have a filename as \\xxx\Integration\Tul\TULDPWorldReply\InProcess\20032018-1610u.41s.888.xml and I need only the filename. I do this by using ${file:onlyname.noext} in order to get 20032018-1610u.41s.888 but I get 20032018-1610u instead. 

      It seems that the code is looking for the FIRST dot and skips everything after that while most code search for LAST dot and skips everything after that. 

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              ronny.aerts.intris Ronny Aerts
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: