Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sap_install_pattern_detect: solman java export detected as sap_export_nwas_java #912

Closed
Galaxy8977 opened this issue Dec 11, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Galaxy8977
Copy link

sapfile of sap_swpm detects SOLMAN72SR2 java export to sap_export_nwas_java instead of sap_export_solman_java

++ eval 'zipinfo -1' /sapcd/XXXX/51054655_4.ZIP
+++ zipinfo -1 /sapcd/XXXX/51054655_4.ZIP
++ awk '
         BEGIN{_sap_file_type="sap_unknown"}
         /BD_SYBASE_ASE/{_sap_file_type="sapase"; exit}
         /ASEBC/{_sap_file_type="sapase_client"; exit}
         /MaxDB_7.9/{_sap_file_type="sapmaxdb"; exit}
         /19cinstall.sh/{_sap_file_type="oracledb"; exit}
         /OCL_LINUX_X86_64/{_sap_file_type="oracledb_client"; exit}
         /brtools/{_sap_file_type="oracledb_tools"; exit}
         /db2setup/{_sap_file_type="ibmdb2"; exit}
         /db6_update_client.sh/{_sap_file_type="ibmdb2_client"; exit}
         /db2aese_c.lic/{_sap_file_type="ibmdb2_license"; exit}
         /DATA_UNITS\/JAVA_EXPORT_JDMP/{_sap_file_type="sap_export_nwas_java"; exit}
         /DATA_UNITS\/EXPORT/{_sap_file_type="sap_export_ecc"; exit}
         /DATA_UNITS\/EXP[0-9]/{_sap_file_type="sap_export_nwas_abap"; exit}
         /DATA_UNITS\/SOLMAN/&&/_JAVA_UT/{_sap_file_type="sap_export_solman_java"; exit}
         /EXP[0-9]/{_sap_file_type="sap_export_ecc_ides"; exit}
         /<sp-stacks/{_sap_file_type="sap_mp_xml"; exit}
         /format error in header/{_sap_file_type="format_error_in_header"; exit}
         END{print _sap_file_type}'
+ _SAP_FILE_TYPE=sap_export_nwas_java
+ [[ sap_export_nwas_java. == \s\a\p\_\e\x\p\o\r\t\_\n\w\a\s\_\a\b\a\p\. ]]
+ [[ sap_export_nwas_java. == \s\a\p\_\u\n\k\n\o\w\n\. ]]
+ _TARGET_DIRECTORY=sap_export_nwas_java
+ _EXTRACTION_DIRECTORY=sap_export_nwas_java_extracted
+ _EXTRACT=y
+ _COPY=n
+ case ${_SAP_FILE_TYPE} in
+ [[ y. == \y\. ]]
+ printf '%s%s%s%s%s%s%s%s%s%s%s\n' sap_export_nwas_java ';' sap_export_nwas_java ';' sap_export_nwas_java_extracted ';' zip ';' y ';' n
sap_export_nwas_java;sap_export_nwas_java;sap_export_nwas_java_extracted;zip;y;n

output of zipinfo -1 /sapcd/XXXX/51054655_4.ZIP

ATA_UNITS/
DATA_UNITS/JAVA_EXPORT_JDMP/
DATA_UNITS/JAVA_EXPORT_JDMP/EXPDUMP.001
DATA_UNITS/JAVA_EXPORT_JDMP/IMPORT.XML
DATA_UNITS/JAVA_EXPORT_JDMP/TOC.XML
DATA_UNITS/JAVA_EXPORT_JDMP/LABEL.ASC
DATA_UNITS/JAVA_EXPORT_JDMP/SIGNATURE.SMF
DATA_UNITS/JAVA_EXPORT/
DATA_UNITS/JAVA_EXPORT/DB/
DATA_UNITS/JAVA_EXPORT/DB/ADA/
DATA_UNITS/JAVA_EXPORT/DB/ADA/DBSIZE.XML
DATA_UNITS/JAVA_EXPORT/DB/DB2/
DATA_UNITS/JAVA_EXPORT/DB/DB2/DBSIZE.XML
DATA_UNITS/JAVA_EXPORT/DB/DB6/
DATA_UNITS/JAVA_EXPORT/DB/DB6/DBSIZE.XML
DATA_UNITS/JAVA_EXPORT/DB/ORA/
DATA_UNITS/JAVA_EXPORT/DB/ORA/DBSIZE.XML
DATA_UNITS/JAVA_EXPORT/LABEL.ASC
DATA_UNITS/JAVA_EXPORT/SIGNATURE.SMF
DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/
DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/J2EEINSTALL.SDA
DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/J2EESTARTUP.SDA
DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/SAP.COM~SYNCLOG.SDA
DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/TOC.XML
DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/LABEL.ASC
DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/SIGNATURE.SMF
DATA_UNITS/JAVA_J2EE_OSINDEP/
DATA_UNITS/JAVA_J2EE_OSINDEP/JDKVersion.xml
DATA_UNITS/JAVA_J2EE_OSINDEP/KernelVersions.xml
DATA_UNITS/JAVA_J2EE_OSINDEP/TOC.XML
DATA_UNITS/JAVA_J2EE_OSINDEP/LABEL.ASC
DATA_UNITS/JAVA_J2EE_OSINDEP/SIGNATURE.SMF
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/ADSSAP19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/CORETOOLS19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/ENGFACADE19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/J2EEFRMW19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMCORE19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/SERVERCORE19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/AJAXRUNTIME19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/BIUDI19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/ESREGBASIC19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/ESREGSERVICES19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/EPBASIS19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/EPBASISAPI19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/ODATACXFEXT19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/SUPPORTTOOLS19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/J2EEAPPS19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/BASETABLES19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/BIWDALV19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/COMPBUILDT19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/CUBASEJAVA19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/CUBASEWD19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/DATAMAPPING19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/SAPBUILDT19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/DICLIENTS19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/ECMCORE19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/ENGINEAPI19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/KMKWJIKS19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/UDDI19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/ESCONFBUILDT19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/ESPFRAMEWORK19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/WSRM19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/ESIUI19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/ESMPBUILDT19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/FRAMEWORKEXT19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/FRAMEWORK19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMTOOLS19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMCFG19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMCTC19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMCTS19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMCTSUI19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMMODELBASE19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMMODELNW19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMNWABASICAPPS19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMNWABASICMBEAN19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMNWACDP19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMNWATOOLS19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMNWAUIFRMRK19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMSLD19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LMNWABASICCOMP19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/MESSAGING19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/MMRSERVER19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/MOINBUILDT19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/NWTEC19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/SERVICECOMP19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/SOAMONBASIC19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/SWLIFECYCL19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/SRUI19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/UKMSJAVA19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/UMEADMIN19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/WDADOBE19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/WDAPPS19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/WDRUNTIMEEXT19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/WDRUNTIME19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/CFGZA19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/CFGZACE19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/SAPXI3RDPARTY19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/JSPM19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/TOC.XML
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/pv_descriptor.xml
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/LABEL.ASC
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/UISAPUI5JAVA19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/SECURITYEXT19_0.SCA
DATA_UNITS/JAVA_J2EE_OSINDEP_UT/SIGNATURE.SMF
DATA_UNITS/LABELIDX.ASC
DATA_UNITS/SOLMAN72_JAVA_UT/
DATA_UNITS/SOLMAN72_JAVA_UT/LMSERVICE12_0.SCA
DATA_UNITS/SOLMAN72_JAVA_UT/ISAGENTJ500_0.SCA
DATA_UNITS/SOLMAN72_JAVA_UT/ADSSAP19_1.SCA
DATA_UNITS/SOLMAN72_JAVA_UT/ISAGENTMINJ500_0.SCA
DATA_UNITS/SOLMAN72_JAVA_UT/LABEL.ASC
DATA_UNITS/SOLMAN72_JAVA_UT/SIGNATURE.SMF
DATA_UNITS/SOLMAN72_JAVA_UT/pv_descriptor_nw75.xml
LABELIDX.ASC
LABEL.ASC
MID.XML
CDLABEL.ASC
VERSION.ASC
LABEL.EBC
CDLABEL.EBC
VERSION.EBC
COPY_TM.HTM
COPY_TM.TXT
MD5FILE.DAT
SHAFILE.DAT

Can it be resolved by advancing pattern detection of SOLMAN before JAVA_EXPORT_JDMP?

@Galaxy8977 Galaxy8977 changed the title sap_swpm: solman java export detected as sap_export_nwas_java sap_install_pattern_detect: solman java export detected as sap_export_nwas_java Dec 11, 2024
@berndfinger berndfinger self-assigned this Dec 11, 2024
@berndfinger
Copy link
Member

berndfinger commented Dec 11, 2024

Sample file download pattern of sap_export_nwas_java: 51055106 (SAP Netweaver 7.5 SP22 Java)

@berndfinger
Copy link
Member

@sean-freeman Thanks. Could be that it worked despite a wrongly detected file type for file 51054655_4, or a code change before 2024-04-12. Anyway, I could reproduce the issue, identify the root cause, and fix it.

@berndfinger berndfinger added the bug Something isn't working label Dec 11, 2024
@berndfinger
Copy link
Member

Solved in #913
@Galaxy8977 Thanks for reporting this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants