hydroshare / hydroshare_drupal

Hydroshare is an online collaboration environment for sharing data, models, and code related to hydrology and water sciences
beta.hydroshare.org
GNU General Public License v2.0
7 stars 2 forks source link

Uploaded Shapefile Preview image not dislaying #16

Closed sduncan4 closed 10 years ago

sduncan4 commented 10 years ago

Just uploaded two shapefiles, WBDHU2 and WBDHU4, and the shapefile preview image is not showing on the website. Here are the links for these two:

http://dev.hydroshare.org/?q=node/204

http://dev.hydroshare.org/?q=node/203

jeffersonheard commented 10 years ago

The data appears never to have been uploaded. There is no datafile for WBDHU2 and WBDHU4 on the dev.hydroshare.org server. Did you get any error messages when creating these nodes?

lstillwe commented 10 years ago

Jeff there would not be a datafile on the server if it was uploaded after we put the iRODS feature in. There should be a record in the DB though.

On Nov 5, 2013, at 12:17 PM, Jeff Heard wrote:

The data appears never to have been uploaded. There is no datafile for WBDHU2 and WBDHU4 on the dev.hydroshare.org server. Did you get any error messages when creating these nodes?

— Reply to this email directly or view it on GitHub.

jeffersonheard commented 10 years ago

lstillwe, The URL to retrieve a resource file should still return a file, however. The IRODS module as is will break the "export" button and break Geoanalytics' ability to retrieve the file from the node. Not sure how this will play with the REST API either, since there's a separate File endpoint for REST.

lstillwe commented 10 years ago

Jeff,

This url: http://dev.hydroshare.org/?q=node/201 produced when you click the export button, does download the appropriate file (in this case testirods1)

What does the URL look like that does not work?

Lisa

On Nov 5, 2013, at 12:22 PM, Jeff Heard wrote:

lstillwe, The URL to retrieve a resource file should still return a file, however. The IRODS module as is will break the "export" button and break Geoanalytics' ability to retrieve the file from the node. Not sure how this will play with the REST API either, since there's a separate File endpoint for REST.

— Reply to this email directly or view it on GitHub.

lstillwe commented 10 years ago

Sorry - actually this is the link : http://dev.hydroshare.org/export.php?file=http://dev.hydroshare.org/sites/default/files/testirods1.zip

Lisa

On Nov 5, 2013, at 12:22 PM, Jeff Heard wrote:

lstillwe, The URL to retrieve a resource file should still return a file, however. The IRODS module as is will break the "export" button and break Geoanalytics' ability to retrieve the file from the node. Not sure how this will play with the REST API either, since there's a separate File endpoint for REST.

— Reply to this email directly or view it on GitHub.

jeffersonheard commented 10 years ago

http://dev.hydroshare.org/export.php?file=http://dev.hydroshare.org/sites/default/files/WBDHU4.zip

On Tue, Nov 5, 2013 at 12:42 PM, Lisa Stillwell notifications@github.comwrote:

Jeff,

This url: http://dev.hydroshare.org/?q=node/201 produced when you click the export button, does download the appropriate file (in this case testirods1)

What does the URL look like that does not work?

Lisa

On Nov 5, 2013, at 12:22 PM, Jeff Heard wrote:

lstillwe, The URL to retrieve a resource file should still return a file, however. The IRODS module as is will break the "export" button and break Geoanalytics' ability to retrieve the file from the node. Not sure how this will play with the REST API either, since there's a separate File endpoint for REST.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/hydroshare/hydroshare/issues/16#issuecomment-27795050 .

lstillwe commented 10 years ago

Jeff,

That url downloads a file for me.

Lisa

On Nov 5, 2013, at 12:45 PM, Jeff Heard wrote:

http://dev.hydroshare.org/export.php?file=http://dev.hydroshare.org/sites/default/files/WBDHU4.zip

On Tue, Nov 5, 2013 at 12:42 PM, Lisa Stillwell notifications@github.comwrote:

Jeff,

This url: http://dev.hydroshare.org/?q=node/201 produced when you click the export button, does download the appropriate file (in this case testirods1)

What does the URL look like that does not work?

Lisa

On Nov 5, 2013, at 12:22 PM, Jeff Heard wrote:

lstillwe, The URL to retrieve a resource file should still return a file, however. The IRODS module as is will break the "export" button and break Geoanalytics' ability to retrieve the file from the node. Not sure how this will play with the REST API either, since there's a separate File endpoint for REST.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/hydroshare/hydroshare/issues/16#issuecomment-27795050 .

— Reply to this email directly or view it on GitHub.

jeffersonheard commented 10 years ago

Wait, i see the problem... the export.php isn't a part fo the URL in the Geoanalytics module, as it was never needed before. Will update.

On Tue, Nov 5, 2013 at 12:47 PM, Lisa Stillwell notifications@github.comwrote:

Jeff,

That url downloads a file for me.

Lisa

On Nov 5, 2013, at 12:45 PM, Jeff Heard wrote:

http://dev.hydroshare.org/export.php?file=http://dev.hydroshare.org/sites/default/files/WBDHU4.zip

On Tue, Nov 5, 2013 at 12:42 PM, Lisa Stillwell < notifications@github.com>wrote:

Jeff,

This url: http://dev.hydroshare.org/?q=node/201 produced when you click the export button, does download the appropriate file (in this case testirods1)

What does the URL look like that does not work?

Lisa

On Nov 5, 2013, at 12:22 PM, Jeff Heard wrote:

lstillwe, The URL to retrieve a resource file should still return a file, however. The IRODS module as is will break the "export" button and break Geoanalytics' ability to retrieve the file from the node. Not sure how this will play with the REST API either, since there's a separate File endpoint for REST.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub< https://github.com/hydroshare/hydroshare/issues/16#issuecomment-27795050> .

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/hydroshare/hydroshare/issues/16#issuecomment-27795443 .

jeffersonheard commented 10 years ago

Lisa, is the requirement of "http://dev.hydroshare.org/export.php?file=" something that's new due to the IRODS module?

lstillwe commented 10 years ago

Jeff,

I believe Jason had added it for exporting in a bagit format before I came onboard. The thing that happened after I implemented the iRODS feature was to remove the data from the local server after it was saved in iRODS. The local file system is still used as a staging area, but then the data is removed from there when it has been successfully imported/exported.

Lisa

On Nov 5, 2013, at 12:57 PM, Jeff Heard wrote:

Lisa, is the requirement of "http://dev.hydroshare.org/export.php?file=" something that's new due to the IRODS module?

— Reply to this email directly or view it on GitHub.

jeffersonheard commented 10 years ago

Oh dear, this breaks the Geoanalytics code a LOT. I will have to do some adjustments before it's working again. The bagit format isn't something I've supported in the past, but its something I can do.

On Tue, Nov 5, 2013 at 1:02 PM, Lisa Stillwell notifications@github.comwrote:

Jeff,

I believe Jason had added it for exporting in a bagit format before I came onboard. The thing that happened after I implemented the iRODS feature was to remove the data from the local server after it was saved in iRODS. The local file system is still used as a staging area, but then the data is removed from there when it has been successfully imported/exported.

Lisa

On Nov 5, 2013, at 12:57 PM, Jeff Heard wrote:

Lisa, is the requirement of "http://dev.hydroshare.org/export.php?file=" something that's new due to the IRODS module?

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/hydroshare/hydroshare/issues/16#issuecomment-27796756 .

jeffersonheard commented 10 years ago

This issue is now part of Issue #19