Skip to main content
23-Emerald IV
June 4, 2022
Question

Windchill 12.1 - Issue with Additional Files Download

  • June 4, 2022
  • 2 replies
  • 3869 views

Just upgraded to Windchill 12.1 and I'm noticing an odd issue when additional files are downloaded from the representation.  For some reason Windchill (or Apache) is dynamically replacing every space character with a plus sign (+).  The additional files themselves do not include the plus sign in their names, and this can be seen by downloading the entire representation.  I dug through the preferences thinking maybe this is something new, but I'm not finding anything.  Please let me know if you have seen this before or have any idea what might be causing it.  Thanks!

 

TomU_0-1654379037018.png

 

 

2 replies

21-Topaz II
June 13, 2022

Hello,

 

         This is due to a code change in class:  com.ptc.windchill.enterprise.wvs.repsAndMarkups.commands.ListRepFilesController

 

Within the download URL which constructed by the class:

  • Before 12.1  ----  var filename = filename
  • start from 12.1  ---- var filename = URLEncoder.encode(filename,"UTF-8")

Replace the class by the one from a previous release could temporally workaround this symptom, however, is not officially supported. 

TomU23-Emerald IVAuthor
23-Emerald IV
June 13, 2022

Thanks.  That's more than I've heard from tech support so far.  Not sure why filenames need to be 'URL encoded' on this one particular page...

21-Topaz II
June 15, 2022

Hi Tom,

       In some rare scenario, for example, whenever a filename is something like "xyz-balabala%.pdf"  (filename has a '%' just before the '.') then without the 'URL encoder' method, such data will be failed to be downloaded.  Considering in most of time, chance of such case is very small, so no worry about this new updates.

TomU23-Emerald IVAuthor
23-Emerald IV
June 15, 2022

For those who may be interested, an SPR has been filed and a corresponding KB article created.

https://www.ptc.com/en/support/article/CS371226

 

I was able to use a class file from a 12.0 system to get around the issue for now.

17-Peridot
June 16, 2022

It will not be fixed before 12.1.2? Not even in a CPS?

TomU23-Emerald IVAuthor
23-Emerald IV
June 16, 2022

Not sure.  It was an intentional (undocumented) change by PTC, so first I have to convince them that it was a mistake to make the change in the first place.