Notes with concern certain practices that are applied to persons in detention in violation of human rights and the rule of law, such as detention without a legal basis, contrary to the principle of habeas corpus, the deprivation of due process of law, of access to legal counsel and/or of an opportunity to challenge the legality of their detention before a court that is a part of the general judicial system, and calls upon States to respect judicial guarantees as provided for in international law, including international human rights law and humanitarian law, as applicable;