Lawyers for an Indian doctor held in Australia over the suspected UK failed bomb attacks say they will appeal government moves to keep him detained.
The treatment of Dr Haneef has triggered protests
Dr Mohammed Haneef had his work visa revoked and was kept in detention under immigration laws on Monday, despite being granted bail by magistrates.
Canberra's actions have alarmed legal and civil rights groups.
Meanwhile the government has been angered by the leaking of a transcript of a police interview with Dr Haneef.
One of the doctor's lawyers, Stephen Keim, has admitted leaking the transcript to The Australian newspaper, saying he did so in the public interest.
According to the leaked transcript, Dr Haneef told Australian police he knew nothing about the alleged plot to launch car bomb attacks in central London and Scotland.
Police chief Mick Keelty said the leaked interview could jeopardise Dr Haneef's trial, and officials are investigating whether it is a contempt of court offence.
Dr Haneef, 27, was charged on Saturday with providing "reckless support" to a terrorist organisation, by allegedly giving a mobile phone SIM card to two suspects in the alleged UK attacks.
A magistrate in Brisbane on Monday granted him conditional bail.
Haneef was charged on Saturday over the alleged UK bomb attempts
But within hours, Immigration Minister Kevin Andrews announced Dr Haneef's work visa had been cancelled because of suspected links to criminal activity, and added that he would be transferred to a detention centre in Sydney.
There has been great disquiet in Australian legal circles over the government's decision, the BBC's Nick Bryant in Sydney says.
Senior lawyers claim the doctor has effectively been denied the presumption of innocence, and the independence of the courts has been undermined.
Dr Haneef's lawyers said on Wednesday that they were lodging an appeal with the federal court, arguing that the case has not been dealt with in an open, transparent and fair manner.
A decision on the appeal is not expected immediately.
Meanwhile, the Australian authorities have played down fears of a diplomatic rift with India over Dr Haneef's detention.
India summoned the Australian High Commissioner on Tuesday to express its concern at the situation.
But Attorney-General Philip Ruddock said Delhi had simply gone through the "proper processes of inquiry about one of its citizens".
"We would do exactly the same thing... if the roles were reversed," he told ABC news.
Dr Haneef was stopped at Brisbane airport on 2 July as he tried to leave for India.
Three people have been charged so far in connection with the attacks in London and Glasgow.
Two other men arrested in connection with the attacks have been released without charge. An inquiry was launched after two cars with petrol, nails and gas cylinders were found in London on 29 June.
A day later, a burning car loaded with gas cylinders was driven into the main terminal building at Glasgow's international airport.