A student who was caught with drugs for sale or supply at an apartment when the property manager arrived with gardaí, challenged the case against him yesterday on the basis that it breached his constitutional right to the inviolability of his residence.