Skip to main content
TomU
23-Emerald IV
Jun 4, 2022 9:44 PM UTC
Question

Windchill 12.1 - Issue with Additional Files Download

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

 

 

12 replies

21-Topaz II
Jun 13, 2022 12:44 PM UTC

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. 

Translate
TomU
TomU23-Emerald IVAuthor
23-Emerald IV
Jun 13, 2022 2:57 PM UTC

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...

Translate
21-Topaz II
Jun 15, 2022 1:46 PM UTC

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.

Translate
TomU
TomU23-Emerald IVAuthor
23-Emerald IV
Jun 15, 2022 1:22 PM UTC

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.

Translate
17-Peridot
Jun 16, 2022 8:53 AM UTC

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

Translate
TomU
TomU23-Emerald IVAuthor
23-Emerald IV
Jun 16, 2022 10:05 AM UTC

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.

Translate