#1147: unable to delete a file attached to a metadata
---------------------+------------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.8.0
Component: General | Version: v2.8.0RC0
Keywords: |
---------------------+------------------------------------------------------
We heavily use files attached to metadata in our geonetwork 2.8.0rc0
instance. Attaching a file works fine, but removing it through the
'delete' button next to thefile name is impossible, the operation fails
with a 'ServiceNotAllowedEx : Service not allowed' exception popup.
The workaround we've found so far is to remove the whole
<gmd:CI_OnlineResource> subtree (which as a sidenote doesnt delete the
file from the metadata_data directory on the server) , and reupload the
file with a different name.
Interesting thing, after uploading a file, there's a resources.get call
made with an empty fname, leading to a backtrace in the log. Related ?
Attaching geonetwork logs for file upload and removal try.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1147>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#1147: unable to delete a file attached to a metadata
---------------------+------------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.8.0
Component: General | Version: v2.8.0RC0
Keywords: |
---------------------+------------------------------------------------------
Comment(by ianwallen):
Worked for me on latest nightly build.
There have been a lot of updates since 2.8.0RC0 - may want to try the
current nightly build to see if the issue exists.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1147#comment:1>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#1147: unable to delete a file attached to a metadata
---------------------+------------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.8.0
Component: General | Version: v2.8.0RC0
Keywords: |
---------------------+------------------------------------------------------
Comment(by landry):
Forgot to say this was with the widgets/extjs gui, if that can matter.
I'll retry with a fresh build from 2.8.x branch.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1147#comment:2>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#1147: unable to delete a file attached to a metadata
-------------------------+--------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
Type: defect | Status: closed
Priority: major | Milestone: v2.8.0
Component: General | Version: v2.8.0RC0
Resolution: worksforme | Keywords:
-------------------------+--------------------------------------------------
Changes (by landry):
* status: new => closed
* resolution: => worksforme
Comment:
Right, after pulling from the 2.8.x branch and rebuilding,
resources.del.new correctly removes the file from the datadir, and unhooks
it from the xml.
There's still a GET /geonetwork-
private/srv/fre/resources.get?id=253&fname=&access=public
without fname set that triggers a 500 code and a BadParameterEx exception,
but i suppose that's not a big deal. closing the ticket.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1147#comment:3>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.
#1147: unable to delete a file attached to a metadata
----------------------+-----------------------------------------------------
Reporter: landry | Owner: geonetwork-devel@…
Type: defect | Status: reopened
Priority: major | Milestone: v2.8.0
Component: General | Version: v2.8.0RC0
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Changes (by landry):
* status: closed => reopened
* resolution: worksforme =>
Comment:
I've been able to reproduce the issue with 2.8.0rc2 - will try to go
deeper to find the root cause and the exact steps to reproduce.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1147#comment:4>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.