THE SIGNING of the nuclear deal with Iran last month touched off an unseemly rush by European governments and investors to cash in on a hydrocarbon-producing country with a deep need for investment and 80 million deprived consumers. The weekend after the end of the talks, Germany's energy and economics minister was in Tehran with a delegation of business executives. French Foreign Minister Laurent Fabius, who struck a pose as skeptic of the deal before it was concluded, landed a few days later. Investors from Spain, Italy and Switzerland, among others, are joining what some are describing as an incipient gold rush.

Most likely, the bracing reality of Iran will bring most back down to earth. Iran is No. 130 out of 189 nations on the World Bank’s ranking of ease of doing business. Corruption is rampant and many industries are controlled by the malignant Revolutionary Guard, whose leaders oppose any opening to the West. It remains to be seen whether even big oil companies such as France’s Total and Italy’s Eni, which worked in Iran before sanctions were imposed, will be offered sufficient incentives to invest in new production at a time of a global oil market glut.

For investors on the fence, we have some advice: Before joining the crowd in Tehran, wait to see what happens to Post reporter Jason Rezaian. Three weeks after the nuclear deal was signed, Mr. Rezaian still sits in Tehran's notorious Evin prison, where he has been held since his arrest on July 22, 2014. His continued detention violates multiple Iranian and international laws, including one very simple one: An Iranian statute says no suspect who has not yet been convicted may be held for more than a year, unless accused of murder.

The charges against Mr. Rezaian have never been publicly announced, but according to his lawyer they include espionage and aiding a hostile government, not homicide. Only three sessions of his trial have been held since May 26, and no live witnesses or substantial evidence have been presented to support the charges, which the State Department has called “patently absurd.” Many analysts believe his prosecution has been orchestrated by hard-liners in the Revolutionary Guard and judiciary to undermine the nuclear deal and discredit its chief negotiator, Foreign Minister Mohammad Javad Zarif, who has called Mr. Rezaian “a good reporter” and a “friend.”

These circumstances should raise several questions for those contemplating investment in Iran. Can the government of Mr. Zarif and President Hassan Rouhani be relied upon when it makes promises about terms for Western companies — or will it be sabotaged by Revolutionary Guard commanders who wish to defend their corrupt economic interests and keep the West out? If there are legal disputes, can Iranian courts be relied upon to enforce even straightforward laws? And will Western business owners visiting Tehran be safe from the fate of Mr. Rezaian — a correspondent duly credentialed by the Ministry of Culture and Islamic Guidance who was abducted by security forces and held in solitary confinement for months without charge while being subjected to harsh interrogation?

Unless and until Mr. Rezaian is released, no investor in Iran can safely set aside those concerns.

Read more on this issue:

The Post’s View: Jason Rezaian’s unjust year of detention in Iran

Dana Milbank: Imprisonment of Post reporter Jason Rezaian is a tragedy for Iran, too

Fareed Zakaria: Why the United States can be optimistic about the Middle East

Charles Krauthammer: Just who is helping Iran’s hard-liners?

Ray Takeyh: The Iran deal is a big bet on a revolutionary outlier