You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
REMOVED: ZIP archive processing and support
Changes Made:
1. Removed ZIP archive mentions from README.md:
- Removed 'including ZIP archives' from Smart Parsing section
- Removed 'and ZIP archives' from Multi-format Input section
2. Removed ZIP processing code from src/routes/yaml.routes.js:
- Removed AdmZip require statement
- Removed .zip file type mapping
- Removed ZIP MIME types
- Removed entire ZIP processing logic (1598-1792 lines)
- Removed ZIP archive from binary analysis
- Updated error messages to remove ZIP references
3. Removed ZIP dependencies:
- Removed 'adm-zip' from package.json
4. Updated error messages:
- Removed ZIP references from file validation errors
Test Results:
✅ All 108 comprehensive tests still passing (100% success rate)
✅ No functionality broken by ZIP removal
✅ All supported file types still working correctly
The application now focuses on core file types:
- .mobileconfig, .xml, .eap-config, .yml/.yaml, .json, .txt/.conf/.cfg
- Binary files (plist, certificates, etc.)
- Text-based configuration files
ZIP support has been completely removed as requested.
console.log('[SERVER /convert] Found binary plist in file:',entry.entryName);
1661
-
plistEntry=entry;
1662
-
break;
1663
-
}
1664
-
}
1665
-
1666
-
}catch(contentError){
1667
-
// Skip files that can't be read as text
1668
-
continue;
1669
-
}
1670
-
}
1671
-
}
1672
-
1673
-
// Third pass: Try XML files that might contain embedded plist data
1674
-
if(!plistEntry){
1675
-
console.log('[SERVER /convert] Still no plist found, checking XML files for embedded content...');
1676
-
1677
-
for(constentryofzipEntries){
1678
-
constentryName=entry.entryName.toLowerCase();
1679
-
1680
-
if(entryName.endsWith('.xml')&&
1681
-
!entryName.includes('content_types')&&
1682
-
!entryName.includes('theme')&&
1683
-
!entryName.includes('styles')&&
1684
-
!entryName.includes('settings')&&
1685
-
!entryName.includes('rels')){
1686
-
1687
-
try{
1688
-
constxmlBuffer=entry.getData();
1689
-
constxmlContent=xmlBuffer.toString('utf8');
1690
-
1691
-
// Look for WiFi/network configuration in XML
1692
-
if(xmlContent.includes('wifi')||
1693
-
xmlContent.includes('network')||
1694
-
xmlContent.includes('eap')||
1695
-
xmlContent.includes('passpoint')||
1696
-
xmlContent.includes('802.1x')||
1697
-
xmlContent.includes('certificate')||
1698
-
xmlContent.includes('credential')){
1699
-
1700
-
console.log('[SERVER /convert] Found potential network config in XML:',entry.entryName);
1701
-
plistEntry=entry;
1702
-
break;
1703
-
}
1704
-
}catch(xmlError){
1705
-
continue;
1706
-
}
1707
-
}
1708
-
}
1709
-
}
1710
-
1711
-
if(!plistEntry){
1712
-
returnres.status(400).json({
1713
-
error: 'No plist, mobileconfig, or network configuration content found in the ZIP archive. Searched through all files but found no Passpoint/WiFi configuration data. Files found: '+
error: 'File does not appear to contain valid XML content. Please ensure you have uploaded a proper XML, plist, or ZIP file containing configuration data.'
1812
+
error: 'File does not appear to contain valid XML content. Please ensure you have uploaded a proper XMLor plist file containing configuration data.'
0 commit comments