The Oregon supreme court has ruled that a large number of criminal cases across the state must be dismissed due to a severe shortage of public defenders, a major decision that attorneys say will impact more than 1,400 pending cases.

The problem has been years in the making and has become a significant constitutional crisis, as people charged with crimes are routinely unable to fight their cases as they wait weeks, months or sometimes years for the state to appoint them lawyers. The attorney shortage – due in part to the increasing difficulty of recruiting attorneys for the low-salary, high-caseload jobs – has meant that people have had cases hanging over them for extended periods of time, impacting their housing, employment and families, advocates say.

Oregon’s highest court ruled on Thursday that dismissals are required if the state has failed to provide counsel within 60 days after arraignment for a misdemeanor and within 90 days for a felony. State data on unrepresented defendants showed that as of this week, more than 1,400 active cases fall in that category, including hundreds of people who have been waiting more than a year for an attorney.

The ruling dictates that the cases be dismissed without prejudice, meaning prosecutors can re-file charges. The court said charges can be brought again “when the state is able to provide the counsel to which a defendant is entitled”. The ruling also said dismissal isn’t required if during the 60- or 90-day period the defendant failed to appear in court for a required hearing.