-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong assumption on creating tiffwriter.conf #4311
Comments
That would be a theme related to #3659, another “secret” use of the
|
See https://github.com/kitodo/kitodo-production/wiki/Verwendung-der-tiffwriterconf-Datei ... there is at least one institute which is using this. Personally I was for removing this but there was an other decision.
This is depending on the used file system and can not counted in this way.
Did you mixed up this comment to with an other issue? This issue is independent from other ones! |
Yes, this was in the wrong issue. |
The creation of the
tiffwriter.conf
file is done in the assumption that theimages
directory of a process is existing in any case. If this is not the case the following error get loggedand the user get an error message displayed that the linking of the process into his user directory was failing.
In the method
saveTiffHeader
in the WebDav class (see https://github.com/kitodo/kitodo-production/blob/master/Kitodo/src/main/java/org/kitodo/production/helper/WebDav.java#L241-L257) is the wrong assumption or the missing check that theimages
directory exists or not.One approach could be that on missing of the
images
directory this directory is created. This could be done by maybe the following code:I'm not so familiar with the file management module nor the command module, so I did the changes in a quick a dirty way: check for the existence of the
images
directory and create it in the other case. I did even remove some of URI <-> File <-> String calls, which may must be stay but I did not see the reason for it.Maybe some one other has more knowledge and can convert this fast, dirty hack into some beautiful flower of code.
The text was updated successfully, but these errors were encountered: