Skip to content
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

knora.json returns empty originalMimeType #287

Closed
benjamingeer opened this issue Mar 27, 2019 · 2 comments · Fixed by #328
Closed

knora.json returns empty originalMimeType #287

benjamingeer opened this issue Mar 27, 2019 · 2 comments · Fixed by #328

Comments

@benjamingeer
Copy link
Contributor

Moved from dasch-swiss/dsp-api#1268.

The problem occurs with this image:

54819543-80bd2780-4c9c-11e9-8946-547d6ad3278c

To reproduce, start Sipi like this:

$ cd test/_test_data/
$ ../../local/bin/sipi --config config/sipi.fake-knora-test-config.lua

Upload the image:

curl -X POST -F "[email protected]" http://localhost:1024/api/upload

Sipi responds with:

{
   "2DwjMfOWysr-G7IrS9oZhK5.jp2": "http://localhost:1024/unit/_54819543-80bd2780-4c9c-11e9-8946-547d6ad3278c.jp2",
   "filename": "_54819543-80bd2780-4c9c-11e9-8946-547d6ad3278c.jp2"
}

Request knora.json:

$ curl http://localhost:1024/unit/_54819543-80bd2780-4c9c-11e9-8946-547d6ad3278c.jp2/knora.json

Sipi responds with:

{
   "width": 373,
   "height": 496,
   "originalMimeType": "",
   "originalFilename": "32_seigneux_gabriel, Fri Jan 17, 2003,  2:05:33 PM,  8C, 7566x8822,  (288+1321), 100%, bent 6 stops,   1/8 s, R22, G2, B9\r"
}
@benjamingeer
Copy link
Contributor Author

ping

@subotic subotic modified the milestones: 2019-10, 2019-11 Nov 5, 2019
@subotic subotic modified the milestones: 2019-11, 2019-12 Nov 27, 2019
@subotic subotic modified the milestones: 2019-12, 2020.1 Feb 7, 2020
lrosenth added a commit that referenced this issue Jul 1, 2020
@lrosenth
Copy link
Collaborator

lrosenth commented Jul 1, 2020

fixed Error in reading essential SIPI metadata in SipiIOJPeg.cpp (now checking for string "SIPI:")

@lrosenth lrosenth mentioned this issue Jul 2, 2020
subotic added a commit that referenced this issue Sep 29, 2020
* Squashed commit of the following:

commit 4efa7410676e25e36e52cdae9e5d1a5944641776
Author: Lukas Rosenthaler <[email protected]>
Date:   Wed Jul 1 11:43:27 2020 +0200

    delete large file

commit 8693fbe66ccce0b1a679aecb05eca9a56ab16151
Author: Lukas Rosenthaler <[email protected]>
Date:   Wed Jul 1 10:52:56 2020 +0200

    Handling of non-image files in knora.json

commit 641efa3c62499df1f949b29fe93652e9f4d78c71
Author: Lukas Rosenthaler <[email protected]>
Date:   Mon Jun 29 18:09:08 2020 +0200

    …

commit 394d96c5b52e00d3f037bba2551ec0a330c20946
Author: Lukas Rosenthaler <[email protected]>
Date:   Mon Jun 29 18:08:58 2020 +0200

    Added support for non-imagefiles

commit eb792e1
Author: Lukas Rosenthaler <[email protected]>
Date:   Wed Jun 24 11:12:17 2020 +0200

    Small fixes

commit 547d83d
Author: Lukas Rosenthaler <[email protected]>
Date:   Tue Jun 23 01:27:33 2020 +0200

    ...

commit e0e6f3a
Author: Lukas Rosenthaler <[email protected]>
Date:   Tue Jun 23 01:27:19 2020 +0200

    Frist commit of new branch

* fixing issue #287

* Bugfix in lua: binding of values in prepared SQL

* Bug fixes of issues

* more fixes

* Squashed commit of the following:

commit 2e4253b
Author: André Kilchenmann <[email protected]>
Date:   Thu Jun 25 15:38:46 2020 +0200

    chore(ci): Update release notes on each release (#327)

commit 0306c33
Author: Ivan Subotic <[email protected]>
Date:   Wed Jun 24 21:07:58 2020 +0200

    build: fix publish (#326)

commit 7cfc5c6
Author: Ivan Subotic <[email protected]>
Date:   Wed Jun 24 19:38:39 2020 +0200

    build: fix publish (#325)

commit d04725a
Author: Ivan Subotic <[email protected]>
Date:   Wed Jun 24 17:46:12 2020 +0200

    feature: add IIIF 3.0 support (#324)

* Missing files added

* Missing filew…

* test: add missing file

* test: trying to fix

* test: reverting wrong fix

* Added XML content to XMP file

* Testing now removes all files created at  the end of testing

* Bugfix in SipiSize and Cache

* removed debugging output (commented out)

* refactoring of core

* Further reorganization

* More IIIF conformance

* ...

* A lot of documentation and some small fixes

* Documentation

* Docu and small fixes for stability

* Some fixes for cache information in lua

* Docu update and fixes

* better error messages

* CSV mimteype fix

* Update of e2e tests to reflect mimetype change for csv

Co-authored-by: Ivan Subotic <[email protected]>
lrosenth added a commit that referenced this issue Oct 25, 2020
commit 9778b19
Author: Ivan Subotic <[email protected]>
Date:   Tue Sep 29 16:23:14 2020 +0200

    fix: printed version strings (DSP-687) (#332)

    * fix init DSP-687 SIPI version strings hardcoded somewhere

    * fix: printed version strings

    Co-authored-by: Ralf Barkow <[email protected]>

commit 9647328
Author: Lukas Rosenthaler <[email protected]>
Date:   Tue Sep 29 11:22:27 2020 +0200

    Fix/issues fixer (#331)

    * Squashed commit of the following:

    commit 4efa7410676e25e36e52cdae9e5d1a5944641776
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Wed Jul 1 11:43:27 2020 +0200

        delete large file

    commit 8693fbe66ccce0b1a679aecb05eca9a56ab16151
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Wed Jul 1 10:52:56 2020 +0200

        Handling of non-image files in knora.json

    commit 641efa3c62499df1f949b29fe93652e9f4d78c71
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Mon Jun 29 18:09:08 2020 +0200

        …

    commit 394d96c5b52e00d3f037bba2551ec0a330c20946
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Mon Jun 29 18:08:58 2020 +0200

        Added support for non-imagefiles

    commit eb792e1
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Wed Jun 24 11:12:17 2020 +0200

        Small fixes

    commit 547d83d
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Tue Jun 23 01:27:33 2020 +0200

        ...

    commit e0e6f3a
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Tue Jun 23 01:27:19 2020 +0200

        Frist commit of new branch

    * fixing issue #287

    * Bugfix in lua: binding of values in prepared SQL

    * Bug fixes of issues

    * more fixes

    * Squashed commit of the following:

    commit 2e4253b
    Author: André Kilchenmann <[email protected]>
    Date:   Thu Jun 25 15:38:46 2020 +0200

        chore(ci): Update release notes on each release (#327)

    commit 0306c33
    Author: Ivan Subotic <[email protected]>
    Date:   Wed Jun 24 21:07:58 2020 +0200

        build: fix publish (#326)

    commit 7cfc5c6
    Author: Ivan Subotic <[email protected]>
    Date:   Wed Jun 24 19:38:39 2020 +0200

        build: fix publish (#325)

    commit d04725a
    Author: Ivan Subotic <[email protected]>
    Date:   Wed Jun 24 17:46:12 2020 +0200

        feature: add IIIF 3.0 support (#324)

    * Missing files added

    * Missing filew…

    * test: add missing file

    * test: trying to fix

    * test: reverting wrong fix

    * Added XML content to XMP file

    * Testing now removes all files created at  the end of testing

    * Bugfix in SipiSize and Cache

    * removed debugging output (commented out)

    * refactoring of core

    * Further reorganization

    * More IIIF conformance

    * ...

    * A lot of documentation and some small fixes

    * Documentation

    * Docu and small fixes for stability

    * Some fixes for cache information in lua

    * Docu update and fixes

    * better error messages

    * CSV mimteype fix

    * Update of e2e tests to reflect mimetype change for csv

    Co-authored-by: Ivan Subotic <[email protected]>
lrosenth added a commit that referenced this issue Oct 26, 2020
* Squashed commit of the following:

commit 4efa7410676e25e36e52cdae9e5d1a5944641776
Author: Lukas Rosenthaler <[email protected]>
Date:   Wed Jul 1 11:43:27 2020 +0200

    delete large file

commit 8693fbe66ccce0b1a679aecb05eca9a56ab16151
Author: Lukas Rosenthaler <[email protected]>
Date:   Wed Jul 1 10:52:56 2020 +0200

    Handling of non-image files in knora.json

commit 641efa3c62499df1f949b29fe93652e9f4d78c71
Author: Lukas Rosenthaler <[email protected]>
Date:   Mon Jun 29 18:09:08 2020 +0200

    …

commit 394d96c5b52e00d3f037bba2551ec0a330c20946
Author: Lukas Rosenthaler <[email protected]>
Date:   Mon Jun 29 18:08:58 2020 +0200

    Added support for non-imagefiles

commit eb792e1
Author: Lukas Rosenthaler <[email protected]>
Date:   Wed Jun 24 11:12:17 2020 +0200

    Small fixes

commit 547d83d
Author: Lukas Rosenthaler <[email protected]>
Date:   Tue Jun 23 01:27:33 2020 +0200

    ...

commit e0e6f3a
Author: Lukas Rosenthaler <[email protected]>
Date:   Tue Jun 23 01:27:19 2020 +0200

    Frist commit of new branch

* fixing issue #287

* Bugfix in lua: binding of values in prepared SQL

* Bug fixes of issues

* more fixes

* Squashed commit of the following:

commit 2e4253b
Author: André Kilchenmann <[email protected]>
Date:   Thu Jun 25 15:38:46 2020 +0200

    chore(ci): Update release notes on each release (#327)

commit 0306c33
Author: Ivan Subotic <[email protected]>
Date:   Wed Jun 24 21:07:58 2020 +0200

    build: fix publish (#326)

commit 7cfc5c6
Author: Ivan Subotic <[email protected]>
Date:   Wed Jun 24 19:38:39 2020 +0200

    build: fix publish (#325)

commit d04725a
Author: Ivan Subotic <[email protected]>
Date:   Wed Jun 24 17:46:12 2020 +0200

    feature: add IIIF 3.0 support (#324)

* Missing files added

* Missing filew…

* test: add missing file

* test: trying to fix

* test: reverting wrong fix

* Added XML content to XMP file

* Testing now removes all files created at  the end of testing

* Bugfix in SipiSize and Cache

* removed debugging output (commented out)

* refactoring of core

* Further reorganization

* More IIIF conformance

* ...

* A lot of documentation and some small fixes

* Documentation

* Docu and small fixes for stability

* Some fixes for cache information in lua

* Docu update and fixes

* better error messages

* CSV mimteype fix

* Update of e2e tests to reflect mimetype change for csv

* Bugfix which made SIPI crash if upscaling an image

* Squashed commit of the following:

commit 9778b19
Author: Ivan Subotic <[email protected]>
Date:   Tue Sep 29 16:23:14 2020 +0200

    fix: printed version strings (DSP-687) (#332)

    * fix init DSP-687 SIPI version strings hardcoded somewhere

    * fix: printed version strings

    Co-authored-by: Ralf Barkow <[email protected]>

commit 9647328
Author: Lukas Rosenthaler <[email protected]>
Date:   Tue Sep 29 11:22:27 2020 +0200

    Fix/issues fixer (#331)

    * Squashed commit of the following:

    commit 4efa7410676e25e36e52cdae9e5d1a5944641776
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Wed Jul 1 11:43:27 2020 +0200

        delete large file

    commit 8693fbe66ccce0b1a679aecb05eca9a56ab16151
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Wed Jul 1 10:52:56 2020 +0200

        Handling of non-image files in knora.json

    commit 641efa3c62499df1f949b29fe93652e9f4d78c71
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Mon Jun 29 18:09:08 2020 +0200

        …

    commit 394d96c5b52e00d3f037bba2551ec0a330c20946
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Mon Jun 29 18:08:58 2020 +0200

        Added support for non-imagefiles

    commit eb792e1
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Wed Jun 24 11:12:17 2020 +0200

        Small fixes

    commit 547d83d
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Tue Jun 23 01:27:33 2020 +0200

        ...

    commit e0e6f3a
    Author: Lukas Rosenthaler <[email protected]>
    Date:   Tue Jun 23 01:27:19 2020 +0200

        Frist commit of new branch

    * fixing issue #287

    * Bugfix in lua: binding of values in prepared SQL

    * Bug fixes of issues

    * more fixes

    * Squashed commit of the following:

    commit 2e4253b
    Author: André Kilchenmann <[email protected]>
    Date:   Thu Jun 25 15:38:46 2020 +0200

        chore(ci): Update release notes on each release (#327)

    commit 0306c33
    Author: Ivan Subotic <[email protected]>
    Date:   Wed Jun 24 21:07:58 2020 +0200

        build: fix publish (#326)

    commit 7cfc5c6
    Author: Ivan Subotic <[email protected]>
    Date:   Wed Jun 24 19:38:39 2020 +0200

        build: fix publish (#325)

    commit d04725a
    Author: Ivan Subotic <[email protected]>
    Date:   Wed Jun 24 17:46:12 2020 +0200

        feature: add IIIF 3.0 support (#324)

    * Missing files added

    * Missing filew…

    * test: add missing file

    * test: trying to fix

    * test: reverting wrong fix

    * Added XML content to XMP file

    * Testing now removes all files created at  the end of testing

    * Bugfix in SipiSize and Cache

    * removed debugging output (commented out)

    * refactoring of core

    * Further reorganization

    * More IIIF conformance

    * ...

    * A lot of documentation and some small fixes

    * Documentation

    * Docu and small fixes for stability

    * Some fixes for cache information in lua

    * Docu update and fixes

    * better error messages

    * CSV mimteype fix

    * Update of e2e tests to reflect mimetype change for csv

    Co-authored-by: Ivan Subotic <[email protected]>

* Added tests for upscaling

Co-authored-by: Ivan Subotic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants