Some times project meta data of full remote project is broken.
- nbproject/configurations.xml is empty or written partly.
- mirror of nbproject/configurations.xml is OK.
- after restarting IDE project is broken.
Root cause of such behavior is double closing of SmartOutputStream.
At first closing the class copy temporary local file to remote file object and delete temporary file.
At second closing SmartOutputStream counts check sum again and can decides to copy file again (because we have a races and check sum can be performed on partly written remote file). Second writing results in empty nbproject/configurations.xml because temporary file have been deleted.
Probably remote file system has synchronization problem.
fixed double closing/writing of remote file object, change set:
fix i18n in change set:
patch candidates are P2s
I reviewed the fix. It is correct and safe enough.
transplanted in releases_elif branch release701_fixes
b10ccc1c7410 transplanted to c72db5048f56
6f85d1bf46c1 transplanted to a68751a3f6f4
can not reproduce in OSS build 30
can not reproduce in OSS dev build based on 7.0.1 patch2