Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-6770

Error while uploading a parameter file

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0 alpha
    • None
    • None
    • None

      • Open "Parameters files" tool
      • Select a folder
      • Insert a file

      A error dialog is displayed with message "Une erreur est survenue: le fichier n'a pas été inséré.". There is no stack trace.

      In logs we have the following error:

      Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 35
      	at java.lang.String.substring(String.java:1950)
      	at org.ametys.cms.parameters.AddOrUpdateFileAction.act(AddOrUpdateFileAction.java:73)
      	at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:125)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
      	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      

          [CMS-6770] Error while uploading a parameter file

          File is actually uploaded, but the user gets an error saying that the opration failed

          Simon Prieul (Inactive) added a comment - File is actually uploaded, but the user gets an error saying that the opration failed

            sprieul Simon Prieul (Inactive)
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: