From 2436c6bd653a037f0d970a830820036df800d4b9 Mon Sep 17 00:00:00 2001 From: Marsa Haoua Date: Thu, 21 Apr 2016 15:36:51 +0200 Subject: [PATCH] prevent the occurrence of internal server error while adding a bitstream to an item if the upload button is pressed without selecting a file --- dspace-api/src/main/resources/Messages.properties | 1 + dspace-jspui/src/main/webapp/tools/upload-bitstream.jsp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dspace-api/src/main/resources/Messages.properties b/dspace-api/src/main/resources/Messages.properties index 324eb01b51..7af26aa0b0 100644 --- a/dspace-api/src/main/resources/Messages.properties +++ b/dspace-api/src/main/resources/Messages.properties @@ -1474,6 +1474,7 @@ jsp.tools.move-item.inheritpolicies = Inherit defaul jsp.tools.upload-bitstream.info = Select the bitstream to upload jsp.tools.upload-bitstream.title = Upload Bitstream jsp.tools.upload-bitstream.upload = Upload +jsp.tools.upload-bitstream.select.file.msg = No file has been selected jsp.workspace.ws-error.errormsg1 = The system was unable to process your request correctly. You must specify an item. jsp.workspace.ws-error.errormsg2 = Go back to "My DSpace", and select "Open" for the WorkSpace Item that you wish to work with. If you are still experiencing problems please do not hesitate to contact us and we will do our best to solve the problem. jsp.workspace.ws-error.heading = Error - Workspace Item diff --git a/dspace-jspui/src/main/webapp/tools/upload-bitstream.jsp b/dspace-jspui/src/main/webapp/tools/upload-bitstream.jsp index bfffcf8a0d..47facc8841 100644 --- a/dspace-jspui/src/main/webapp/tools/upload-bitstream.jsp +++ b/dspace-jspui/src/main/webapp/tools/upload-bitstream.jsp @@ -43,7 +43,7 @@
- + " class="form-control" type="file" size="40" name="file"/>