GeoServer

Unable to POST Coverages to CoverageStore

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.3
  • Fix Version/s: 1.7.5
  • Component/s: REST
  • Labels:
    None
  • Number of attachments :
    5

Description

Multiple exceptions and errors occur while trying to upload GeoTiffs and JPEG/PNG files to Geoserver for staging.

When uploading JPEG/PNG files, I get an error back:

Unsupported File Format (I am uploading as a file.worldimage as per the documentation)

When uploading a GeoTiff, I get the stack trace that is covered in my conversations with Justin. A note that this occurs even the first time that a coverage is uploaded. NullPointerException is always thrown.

This seems related to the shapefile problem as well.

  1. Geoserver-users REST Configuration API - 1.txt
    20/Apr/09 2:50 PM
    24 kB
    Ronak Patel
  2. Geoserver-users REST Configuration API - 2.txt
    20/Apr/09 2:50 PM
    23 kB
    Ronak Patel
  3. Geoserver-users REST Configuration API - 3.txt
    20/Apr/09 2:50 PM
    9 kB
    Ronak Patel
  4. gt-main
    21/Apr/09 12:12 PM
    0.6 kB
    Ronak Patel
  5. gt-restconfig
    21/Apr/09 12:12 PM
    2 kB
    Ronak Patel

Activity

Hide
Ronak Patel added a comment -

I was able to remotely debug this problem with Justin's help and found the location of and solutions to some of the bugs that were causing these problems.

I would like to contribute the bug fix back to the community.

Show
Ronak Patel added a comment - I was able to remotely debug this problem with Justin's help and found the location of and solutions to some of the bugs that were causing these problems. I would like to contribute the bug fix back to the community.
Hide
Andrea Aime added a comment -

The best way is to attach a patch to this issue. That's the way other developers get to know your work. If you keep posting good quality patches devs will eventually give you commit access (in the OS community commit access is a matter of building trust).

Show
Andrea Aime added a comment - The best way is to attach a patch to this issue. That's the way other developers get to know your work. If you keep posting good quality patches devs will eventually give you commit access (in the OS community commit access is a matter of building trust).
Hide
Ronak Patel added a comment -

Patch against 1.7.3a version of Geoserver.

I saw that the code was written to replace or save a coverage based on the fact that a coverage store existed before or not.

I have modified the code so that coverages are updated and the catalog is properly kept in sync.

Please verify.

Show
Ronak Patel added a comment - Patch against 1.7.3a version of Geoserver. I saw that the code was written to replace or save a coverage based on the fact that a coverage store existed before or not. I have modified the code so that coverages are updated and the catalog is properly kept in sync. Please verify.
Hide
Justin Deoliveira added a comment -

Thanks for the patch Ronak, I modified a bit before committing but the end result should be the same. If you could update your checkout of 1.7.x and try it out that would be much appreciated.

Show
Justin Deoliveira added a comment - Thanks for the patch Ronak, I modified a bit before committing but the end result should be the same. If you could update your checkout of 1.7.x and try it out that would be much appreciated.
Hide
Ronak Patel added a comment -

I'm currently attending JavaOne so I will get to this next week.

Do you have any idea when Geoserver 1.7.5 will be released?

Will these patches be carried over to Geoserver 2.x??

Show
Ronak Patel added a comment - I'm currently attending JavaOne so I will get to this next week. Do you have any idea when Geoserver 1.7.5 will be released? Will these patches be carried over to Geoserver 2.x??
Hide
Justin Deoliveira added a comment -

1.7.5 should be out next week some time. And yes, these patches will be ported to 2.x. Have fun at JavaOne!

Show
Justin Deoliveira added a comment - 1.7.5 should be out next week some time. And yes, these patches will be ported to 2.x. Have fun at JavaOne!

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: