#238 closed bug (invalid)
problem about check in file
| Reported by: | beikesea | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Import / Export | Version: | 6.5 |
| Keywords: | Cc: |
Description
There is a serious problem about check in file:
- upload a.txt to the logicaldoc
- check out a.txt
- check in the another file such as b.txt and logicaldoc will alter that file name is wrong. And then I close the dialog.
- check in b.txt again
- check in the new version file(a.txt) to the logicaldoc
Now I find the problem that a.txt is replaced by b.txt!
And in the file attribute, the title attribute is a.txt but the file attribute shows b.txt.
Change History (6)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
| Component: | Core → Import / Export |
|---|
follow-up: 4 comment:3 by , 14 years ago
| Milestone: | 6.5.1 |
|---|---|
| Priority: | Major → Minor |
| Resolution: | → invalid |
| Status: | new → closed |
This behaviour is the correct one. Normally you should use every time the same file name, but if you cant you can uncheck the checkbox and force LogicalDOC do use another file name.
If you do so, it is normal that the file name is changed but the title will remain unchanged.
This is ok since title and filename are two distinct metadata.
Of course when you create a new document, LogicalDOC will propose you to use the file name itself as title but it is just a choice, you can change the title at your will.
comment:4 by , 14 years ago
But I wish the file is replaced by the last upload file(a.txt for new version) not b.txt, and my staff always check in the wrong file, how can I do?
Replying to car031:
This behaviour is the correct one. Normally you should use every time the same file name, but if you cant you can uncheck the checkbox and force LogicalDOC do use another file name.
If you do so, it is normal that the file name is changed but the title will remain unchanged.
This is ok since title and filename are two distinct metadata.
Of course when you create a new document, LogicalDOC will propose you to use the file name itself as title but it is just a choice, you can change the title at your will.
follow-up: 6 comment:5 by , 14 years ago
Prepare the right file in your desktop.
Do checkout on the actual document.
Do checkin and upload the right file.
comment:6 by , 14 years ago
I have find the reason.
In the UploadServlet.java
When I check in file, the system will put the file information to the map.
If I check in wrong file to the system and close the dialog at th same time, the map will not be clean.
And in the checkin method for DocumentServiceImpl.java
The problem is :
File file = uploadedFilesMap.values().iterator().next();
I think it is wrong. It always get a file from map by random when there are some files.
So I make the Hashtable to LinkedHashMap and I get last file from map in the checkin method.
Replying to car031:
Prepare the right file in your desktop.
Do checkout on the actual document.
Do checkin and upload the right file.
logicaldoc version : 6.5
language: chinese
explorer: ie 9