VERIFIED SOLUTION i
X

Vault resource sets incomplete on UNIX

Issue

On UNIX platforms, the resource set located in server/distrib/<resourceset> would be complete, but the copy located on render/<resourceset> would be missing files.

Cause

When fonts an images had less than 8 characters in the filename, RMFutil would pad out the name with spaces.  This would not cause an issue on the Windows versions of Vault, but on the UNIX versions this would cause filename mismatch errors such as:

01:34:30 10.112.2.144:34710 {12} <render1> ERROR 70801: unable to find resource, resource [CZAZTW], resource set [794DFB0E8BB4496] 
01:34:30 10.112.2.144:34710 {12} <render1> ERROR 30023: unable to find font character set, resource [CZAZTW], resource set [794DFB0E8BB4496] 
02:05:58 10.112.2.144:34825 {121} <render1> ERROR 70801: unable to find resource, resource [CZAZTW], resource set [A558ADA19443D01] 
02:05:58 10.112.2.144:34825 {121} <render1> ERROR 30023: unable to find font character set, resource [CZAZTW], resource set [A558ADA19443D01] 
02:08:52 10.112.2.144:34830 {133} <render1> ERROR 70801: unable to find resource, resource [CZUNCR], resource set [A558ADA19443D01] 
02:08:52 10.112.2.144:34830 {133} <render1> ERROR 30023: unable to find font character set, resource [CZUNCR], resource set [A558ADA19443D01] 
02:08:52 10.112.2.144:34830 {133} <render1> ERROR 70801: unable to find resource, resource [CZUNCW], resource set [A558ADA19443D01] 
02:08:52 10.112.2.144:34830 {133} <render1> ERROR 30023: unable to find font character set, resource [CZUNCW], resource set [A558ADA19443D01] 
02:40:05 10.112.2.144:34928 {192} <render1> ERROR 70801: unable to find resource, resource [CZAZTW], resource set [501E2AA98306430] 
02:40:05 10.112.2.144:34928 {192} <render1> ERROR 30023: unable to find font character set, resource [CZAZTW], resource set [501E2AA98306430] 
02:42:13 10.112.2.144:34941 {215} <render1> ERROR 70801: unable to find resource, resource [CZUNCR], resource set [501E2AA98306430] 
02:42:13 10.112.2.144:34941 {215} <render1> ERROR 30023: unable to find font character set, resource [CZUNCR], resource set [501E2AA98306430] 
02:42:13 10.112.2.144:34941 {215} <render1> ERROR 70801: unable to find resource, resource [CZUNCW], resource set [501E2AA98306430] 
02:42:13 10.112.2.144:34941 {215} <render1> ERROR 30023: unable to find font character set, resource [CZUNCW], resource set [501E2AA98306430] 


rmfutil is padding names less than 8 characters long with spaces.

On Windows, CreateFile will automatically remove trailing spaces. On Linux, fopen will not.

Vault itself removes trialing spaces from names in MCF structured fields.

Resolution

UPDATED: October 18, 2017


Grant Boyle commented on Customer SupportEVA-2313
 
Re: RMFutil related error loading files
I've posted a patch to the internal FTP server.
This patch address an issue when using rmfutil resource extraction where the extracted names have trailing spaces on Unix platforms. When a document using such a resource is rendered Vault would previously be unable to locate the resource because the trailing spaces made the name different.
The change alters the logic used to resolve mismatched resource names on Unix platforms. Previously this logic had to handle possibility that the extracted resource name and the name used in the stream where different cases. The new logic also handles the case where the extracted resource has trailing spaces added.
The net result is that if no extract name match is found, Vault scans the available resources in the resource set for a resource that is has the same name except for case or trailing spaces. It then returns the data for the located file.
If the rendering engine has not yet downloaded the resource, the resource created there will have the name requested by the stream with the contents of the matching extracted file.
e.g.
[gboyle@tog1dev-tuxedo Vault]
$ find . -printf "[%p]
\n" | grep "CZ[AU]
"
[./server/distrib/501E2AA98306430/CZAZTW ]
[./server/distrib/501E2AA98306430/CZUNCR ]
[./server/distrib/501E2AA98306430/CZUNCW ]
[./server/distrib/794DFB0E8BB4496/CZAZTW ]
[./render/501E2AA98306430/CZUNCW]
[./render/501E2AA98306430/CZAZTW]
[./render/501E2AA98306430/CZUNCR]
[./render/794DFB0E8BB4496/CZAZTW]
builds/7.0M2p0052
7.0M2p0052-Installer-Vault.zip
7.0M2p0052-InstallSet-Vault.zip
7.0M2p0052-Patch-Vault.zip
Vault-7.0M2p0052-AIX-powerpc.tar.gz
Vault-7.0M2p0052-AIX-powerpc.tar.gz.MD5
Vault-7.0M2p0052-AIX-powerpc.tar.gz.SHA1
Vault-7.0M2p0052-Linux-i686.tar.gz
Vault-7.0M2p0052-Linux-i686.tar.gz.MD5
Vault-7.0M2p0052-Linux-i686.tar.gz.SHA1
Vault-7.0M2p0052-SunOS-sparc.tar.gz
Vault-7.0M2p0052-SunOS-sparc.tar.gz.MD5
Vault-7.0M2p0052-SunOS-sparc.tar.gz.SHA1
Add CommentAdd Comment
 

Environment Details

Product Feature: Loader

Operating System: Linux

Database: Not stated

Configuration: Not stated
 

Downloads

  • No Downloads