Correction is passed file name to checkPageExistsUsingTitle, function expects file name prefixed with File: (#3194)

This commit is contained in:
Ashish Kumar 2019-11-06 15:15:48 +05:30 committed by neslihanturan
parent 53d0d5e4a0
commit 5a2a06b0f5

View file

@ -309,7 +309,7 @@ public class UploadService extends HandlerService<Contribution> {
sequenceFileName = regexMatcher.replaceAll("$1 " + sequenceNumber + "$2");
}
}
if (!mediaClient.checkPageExistsUsingTitle(sequenceFileName).blockingGet()
if (!mediaClient.checkPageExistsUsingTitle(String.format("File:%s",sequenceFileName)).blockingGet()
&& !unfinishedUploads.contains(sequenceFileName)) {
break;
}