forked from Qortal-Forker/qortal
		
	Removed hardcoded "qortal-backup/TradeBotStates.json" from POST /admin/repository/data API, as it's no longer needed now that API keys are required.
This commit is contained in:
		@@ -588,10 +588,6 @@ public class AdminResource {
 | 
				
			|||||||
	public String importRepository(@HeaderParam(Security.API_KEY_HEADER) String apiKey, String filename) {
 | 
						public String importRepository(@HeaderParam(Security.API_KEY_HEADER) String apiKey, String filename) {
 | 
				
			||||||
		Security.checkApiCallAllowed(request);
 | 
							Security.checkApiCallAllowed(request);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Hard-coded because it's too dangerous to allow user-supplied filenames in weaker security contexts
 | 
					 | 
				
			||||||
		if (Settings.getInstance().getApiKey() == null)
 | 
					 | 
				
			||||||
			filename = "qortal-backup/TradeBotStates.json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		try (final Repository repository = RepositoryManager.getRepository()) {
 | 
							try (final Repository repository = RepositoryManager.getRepository()) {
 | 
				
			||||||
			ReentrantLock blockchainLock = Controller.getInstance().getBlockchainLock();
 | 
								ReentrantLock blockchainLock = Controller.getInstance().getBlockchainLock();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user