Error uploading a document. file name too long.

Hello, we have problems when uploading documents, as we have discovered if the file name is greater than 150 characters, the program enters an infinite loop.

I have looked in the code and in the CORE and I don't see anything anywhere that limits it to 150 characters.

Any suggestions where to look?

Too many thanks!!!

Parents
  • Let´s game it out - PLM edition! Sunglasses I love when people try stuff that has the potential to break the software.

    Do you get an error message? Maybe in the server log files?

    It´s unlikely that Innovator restricts the length of the files. I assume it´s more an Windows issue. Maybe the file path in the File Vault get´s too long which throws a error on server side that is not passed to the client.

    Typically, paths can be about 260 (?) characters long. The file vault structure itself already adds a few characters. I made a quick tests and had no problem uploading these kind of files, but I use MS Server 2022, which seems to allow longer paths. 

    You maybe can change the windows registry to allow longer file names. But I wouldn't change this unless it's really necessary.

    Angela

  • 0 オフライン in reply to AngelaIp
    Me encanta cuando la gente prueba cosas que tienen el potencial de romper el software.

    Lol. hehehe. I look, but I don't touch!!

    Look, curiosity!!, I'm giving you a series of screenshots of the debugger, in case you see something "strange", you who have an expert eye on ARAS, :)

    ARAS has given the id, the full file name is in the variable, but when trying to upload it to the server, it fails. Enter an infinite loop.

    I tried to copy that same file to the server with the explorer and without problem.

    Thanks!!

  • 0 オフライン in reply to FernandoCG

    I agree with Angela. You've most likely exceeded the max path length limit 260 chars. What the path to vault on your server? If something like "C:\Program Files (x86)\Aras\Innovator\VaultServer\Vault\InnovatorSolutions", the path length for vaulted file without filename will be exactly 110 symbols. So you have only 150 for file name.

  • There is nothing strange in your screenshots. As you have highlightend in the images, there is an error when sending a POST request. So probably the server disliked something. 

    When uploading the file, the server either doesn´t accept it at all, or will cut the name to a certain length.


    Alaxala explained it very well. You have to check the full file path in the file Vault. While copy&pasting the file to the desktop will probably work, copy&paste to the File Vault structure might fail.

    I have seen in your screenshots, that certain characters in the file name are escaped. But not all of them. This could also be a source of trouble. But I assume in your case, it´s really just the file length. 

Reply
  • There is nothing strange in your screenshots. As you have highlightend in the images, there is an error when sending a POST request. So probably the server disliked something. 

    When uploading the file, the server either doesn´t accept it at all, or will cut the name to a certain length.


    Alaxala explained it very well. You have to check the full file path in the file Vault. While copy&pasting the file to the desktop will probably work, copy&paste to the File Vault structure might fail.

    I have seen in your screenshots, that certain characters in the file name are escaped. But not all of them. This could also be a source of trouble. But I assume in your case, it´s really just the file length. 

Children
No Data