Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Need help calling iwmerge.cgi from a workflow
JNLITeamsite
Our quality assurance folks need a workflow where they can diff a file with a previously published copy of the file.
Basically, this is the same functionality that you get by doing View->History and clicking on Source Diff, but we need to do it in a workflow.
Looking at how Source Diff functions, we can see that it calls iwmerge.cgi and launches an applet.
Instead of building something from scratch that does diffs, I'd like to use iwmerge.cgi but I am having some trouble figuring out how to call iwmerge.cgi with the right variables.
I've sniffed the traffic to try to figure out how to launch iwmerge.cgi with the right posted variables. I cannot figure out how the area (arid), branch (brid), workarea (waid) are encoded, where the count comes from and the strange mangling of the filenames being compared.
Here's an example string we sniffed during a call to iwmerge.cgi
arid=ZAAAAAAAAgIA&brid=FSwoAAAAAAAAiUw&waid=FSwvAAAAAAAAhAw&dirid=QAAEAREpyUAAAQCc&submit_comment=&submit_info=&iwname=&label=&owner=&keepchks=false&getlatest=true&confonly=false&pageid=23&msel_action=srcdiff&count=9296&has_applet_support=true&has_applet_support=true&iw_locale=en&iw_locale=en&F%7CQAAEAREpyUAAAQCc%7CDTCPTS.html=true&F%7COHJ3AOHJ3AAAQCI%7CDTCPTS.html=true&iwcgi_hook=true
We're still on Teamsite 5.5.2
Any help would be appreciated.
Find more posts tagged with
Comments
Migrateduser
I am just guessing as I dont have access to TS 5.5.2
- arid:- TeamSite edition id
- brid:- TeamSite branch id
- waid:- TeamSite workarea id
- dirid:- TeamSite directory id
For every asset in TeamSite there a id associated with, you can get the id of file/directory/workarea/branch/edition etc using
iwattrib vpath id
.
I think iwmerge.cgi is using TeamSite object id's insted of vpath is due to the limitation of amount of information that you can pass in the querry string.
JNLITeamsite
iwattr doesn't seem to track with what I'm seeing in the iwmerge.cgi variables.
For example:
iwattrib /default/main/rumc/rumba/WORKAREA/webdev/RUMBA/DTCPTS.html objid
0x0000100844e32fd3402bdc49
iwattrib /default/main/rumc/rumba/WORKAREA/webdev objid
0x00002100000000000054b0bf
It must be encoding it some other way.
JNLITeamsite
We figured out how to do this. We created a cgi script named diff.ipl and placed in our cgi directory (/opt/iw-home/httpd/iw-bin)
I've attached a copy of an earlier proof of concept version of this file.
Works on Teamsite 5.5 for Solaris tested with IE 6 and latest version of Firefox.
Hope this helps someone who needs to do a diff from a cgi launched from their workflow.