Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: WEXP in DOORS 8.2 error
Topic Summary:
Created On: 23-May-2007 14:23
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 23-May-2007 14:23
User is offline View Users Profile Print this message


Dave Robbins

Posts: 36
Joined: 9-Dec-2003

Running WEXP ( 11.4 ) in DOORS 8.2 produces a warning 'Cannot extract path name from ... '
When clicking the Export button.

Further investigating, it looks like the behaviour of matches() has changed between 7.1 and 8.2

this code snippet will extract the file path OK in 7.1 but not 8.2

string fname = "C:\\temp\\wordFile.doc"; // debug
// extract pathname - assumes subdocuments go into path specified
string wordFilePath = ""
if ( matches("[\\/]([^\\/]*)$", fname) ) wordFilePath = fname[0:start 0];
else {
warningBox "Cannot extract path name from " fname
return false
}

Modifying the matches stament to:

string fname = "C:\\temp\\wordFile.doc"; // debug
// extract pathname - assumes subdocuments go into path specified
string wordFilePath = ""
if ( matches("[\\\\/]([^\\\\/]*)$", fname) ) wordFilePath = fname[0:start 0]; // modified
else {
warningBox "Cannot extract path name from " fname
return false
}

now works in 8.2 and 7.1

This code snippet is @ line 165 in wexpinit.inc if you find your copy of WEXP doesn't run in 8.2

-------------------------
Dave
+44 (0)23 9270 5711
david.robbins@astrium.eads.net
~~~~~~~~~~~~~~~~~~~~
EADS Astrium, Anchorage Road
Portsmouth. Hampshire. UK PO3 5PU

Edited: 23-May-2007 at 14:26 by Dave Robbins
Report this to a Moderator Report this to a Moderator
 24-May-2007 09:00
User is offline View Users Profile Print this message


Dave Robbins

Posts: 36
Joined: 9-Dec-2003

I have had a response back from support:


The difference is due to a defect that was fixed in DOORS 8.2. Defect ID 25255. See also:

https://support.telelogic.com/en/doors/info/fixed/fixed.cfm?vid=236&SearchPhrase=&ContentGroup=DXL&StartRecord=21

The problem was that pre-8.2 clients wouldn't always recognise incorrect regular expressions.



So, beware of this, as code that ran previously on 7.1 may not now work as expected.

-------------------------
Dave
+44 (0)23 9270 5711
david.robbins@astrium.eads.net
~~~~~~~~~~~~~~~~~~~~
EADS Astrium, Anchorage Road
Portsmouth. Hampshire. UK PO3 5PU
Report this to a Moderator Report this to a Moderator
 31-May-2007 11:45
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

Good work dave. Nice to see you are still on the case.

-------------------------
Andrew Tagg
Thales Air Systems, Melbourne
Australia.
andrew.tagg@thalesatm.com
Report this to a Moderator Report this to a Moderator
 16-Nov-2007 20:31
User is offline View Users Profile Print this message


Stephen Kay

Posts: 1
Joined: 29-Sep-2005

Dave,
My version of WEXP (11.4.8) is encrypted. How did you make the change?

Steve Kay
Hologic, Inc.
Report this to a Moderator Report this to a Moderator
 10-Jan-2008 17:18
User is offline View Users Profile Print this message


Ken McNair

Posts: 47
Joined: 12-Sep-2003

Dave,

Thanks for providing the solution to this problem! However, you state the change is on line 165 in wexpinit.inc. In my version of wexpinit.inc, the line of code you modified occurs twice, on lines 193 and 356. Did you also modify the second occurrence?
My version of WEXP is "WEXP 1104 20050816"
The last update to wexpinit.inc was "JD 26/04/05"

Regards,
Ken.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.