4.  The applicant was born in 1981 and lives in Sochi. 5.  On 27 November 2010 the applicant, a police captain, was arrested for soliciting a bribe. He was taken into custody and his detention was extended on several occasions. On 4 July 2011 the case was submitted for trial in the Tsentralnyy District Court of Sochi. 6.  On 8 July 2011 the District Court determined that the case was not ready for trial and returned the file to the prosecutor. By the same decision, it extended the applicant’s detention until 10 August 2011. 7.  On 9 August 2011 the director of the IZ-23/2 remand prison where the applicant was held reported to the Sochi prosecutor and to the president of the Tsentralnyy District Court that, in the absence of an order extending the applicant’s detention beyond 10 August, he would need to be released on that date. On the same date the Sochi prosecutor replied to him that there were no grounds for releasing the applicant because the date for hearing the prosecutor’s appeal against the District Court’s order of 8 July had been fixed for 17 August. The applicant was not released on 10 August. He complained about his unlawful detention to the head of the Investigations Committee and the regional head of the Ministry of the Interior but did not receive any reply. 8.  On 17 August 2011 the Krasnodar Regional Court quashed the District Court’s order on appeal. As regards the custodial measure, it held that no extension had been necessary because by virtue of Article 255 § 2 of the Code of Criminal Procedure the applicant could be held in custody for an initial six-month period starting from the date on which the case had been submitted for trial.