docdoku / docdoku-plm

The project purpose is to develop a comprehensive, robust open source PLM (Product LifeCycle Management) solution.
http://www.docdokuplm.com
GNU Affero General Public License v3.0
237 stars 97 forks source link

[Wrong Exception] when creating workspace #1199

Open florentgarin opened 5 years ago

florentgarin commented 5 years ago

If the configuration has not correctly be done, some issue may be raised when creating the workspace. For example, that is the case if the elasticsearch.config does not exist.

The problem is not correctly displayed to the user, instead of getting a 500 error he gets a 409 conflict "workspace already exists".

mguimard commented 5 years ago

Fixed in https://github.com/polarsys/eplmp/commit/1e209631fcf9388b12c84b27446f3a866caef00e#diff-80e5bc14b7c6c3b5cb3e7a6604b526b7R120 and covered by unit tests.

The branch (upgrade to ES 6.4.x) isn't ready to be merged yet, it needs more coverage