Hi there!
I might have found an issue in the Git Backup Extension
Applies to
Tested on ThingWorx 8.4 (Postgres; Installed from Manufacturing Apps 8.4 installer)
Description
- When pressing the "Import Extension" button nothing happens. No message is displayed in the panel in the lower part of the screen.
- ApplicationLog file shows the following messages:
- 2020-07-24 17:40:38.453+0000 [L: ERROR] [O: c.t.r.ExtensionsExport] [I: ] [U: Administrator] [S: ] [T: http-nio-8080-exec-8] Import target baseURL missing protocol [about:///Thingworx/ExtensionPackageUploader?purpose=import&validate=false]
- 2020-07-24 17:40:38.465+0000 [L: ERROR] [O: c.t.r.ExtensionsExport] [I: ] [U: Administrator] [S: ] [T: http-nio-8080-exec-8] Error in ContentLoader.postMultiPart: check your inputs! URI does not specify a valid host name: about:///Thingworx/ExtensionPackageUploader?purpose=import&validate=false
- The importTargets infotable property of the ExtensionImportTargets Thing has the followinfg value
- That is, the row[0] baseURL field value is "about:///ThingWorx"
Solution
The responsible of setting that wrong baseURL value is the exp_GetBrowserURL expression.
So, I hardcoded it to the string "http://localhost:8080" and it worked fine.
![Screenshot from 2020-07-24 17-57-46.png Screenshot from 2020-07-24 17-57-46.png](https://community.ptc.com/t5/image/serverpage/image-id/29645iDB7335966F327F52/image-size/large?v=v2&px=999)
I believe there might be a general better solution. So feel free to comment.
Regards,
Nahuel