mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-03 22:20:28 +03:00 
			
		
		
		
	convert apkcache from pickle to JSON
pickle can serialize executable code, while JSON is only ever pure data. The APK cache is only ever pure data, so no need for the security risks of pickle. For example, if some malicious thing gets write access on the `fdroid update` machine, it can write out a custom tmp/apkcache which would then be executed. That is not possible with JSON. This does just ignore any existing cache and rebuilds from scratch. That is so we don't need to maintain pickle anywhere, and to ensure there are no glitches from a conversion from pickle to JSON. closes #163
This commit is contained in:
		
							parent
							
								
									74776e026f
								
							
						
					
					
						commit
						3011953d0e
					
				
					 6 changed files with 97 additions and 46 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
{
 | 
			
		||||
  "repo": {
 | 
			
		||||
    "timestamp": 1502845383782,
 | 
			
		||||
    "version": 19,
 | 
			
		||||
    "version": 20,
 | 
			
		||||
    "name": "My First F-Droid Repo Demo",
 | 
			
		||||
    "icon": "fdroid-icon.png",
 | 
			
		||||
    "address": "https://MyFirstFDroidRepo.org/fdroid/repo",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue