Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #10496 (closed)

Opened 6 years ago

Closed 5 years ago

BUG: QA 4940 - minor editor path issue on Windows

Reported by: omero-qa Owned by: wmoore
Priority: critical Milestone: 5.1.0
Component: Insight Version: 4.4.9
Keywords: n.a. Cc: ux@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

https://www.openmicroscopy.org/qa2/qa2/qa/feedback/4940/

java.lang.Exception: org.openmicroscopy.shoola.env.data.DSAccessException: Cannot upload the file with path C:\Users\u0075824\omero\editor\keratinocyte staining 26\02\2013.cpe.xml

	at org.openmicroscopy.shoola.env.data.OMEROGateway.uploadFile(OMEROGateway.java:4098)

	at org.openmicroscopy.shoola.env.data.OmeroMetadataServiceImpl.archivedFile(OmeroMetadataServiceImpl.java:1802)

	at org.openmicroscopy.shoola.env.data.views.calls.ArchivedFilesSaver$1.doCall(ArchivedFilesSaver.java:80)

	at org.openmicroscopy.shoola.env.data.views.BatchCall.doStep(BatchCall.java:144)

	at org.openmicroscopy.shoola.util.concur.tasks.CompositeTask.doStep(CompositeTask.java:226)

	at org.openmicroscopy.shoola.env.data.views.CompositeBatchCall.doStep(CompositeBatchCall.java:126)

	at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.exec(ExecCommand.java:165)

	at org.openmicroscopy.shoola.util.concur.tasks.ExecCommand.run(ExecCommand.java:276)

	at org.openmicroscopy.shoola.util.concur.tasks.AsyncProcessor$Runner.run(AsyncProcessor.java:91)

	at java.lang.Thread.run(Unknown Source)

Caused by: java.io.FileNotFoundException: C:\Users\u0075824\omero\editor\keratinocyte staining 26\02\2013.cpe.xml (The system cannot find the path specified)

	at java.io.FileInputStream.open(Native Method)

	at java.io.FileInputStream.<init>(Unknown Source)

	at org.openmicroscopy.shoola.env.data.OMEROGateway.uploadFile(OMEROGateway.java:4076)

	... 9 more



	at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.showErrorDialog(UserNotifierImpl.java:189)

	at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.notifyError(UserNotifierImpl.java:287)

	at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.notifyError(UserNotifierImpl.java:257)

	at org.openmicroscopy.shoola.agents.editor.EditorLoader.handleException(EditorLoader.java:126)

	at org.openmicroscopy.shoola.env.data.events.DSCallAdapter.eventFired(DSCallAdapter.java:84)

	at org.openmicroscopy.shoola.env.data.views.BatchCallMonitor$1.run(BatchCallMonitor.java:124)

	at java.awt.event.InvocationEvent.dispatch(Unknown Source)

	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

	at java.awt.EventQueue.access$000(Unknown Source)

	at java.awt.EventQueue$1.run(Unknown Source)

	at java.awt.EventQueue$1.run(Unknown Source)

	at java.security.AccessController.doPrivileged(Native Method)

	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)

	at java.awt.EventQueue.dispatchEvent(Unknown Source)

	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

	at java.awt.EventDispatchThread.run(Unknown Source)

Change History (8)

comment:1 Changed 6 years ago by sylittlewood

Could put a fix in the gateway to check that local files exist before attempting to upload them.

comment:2 Changed 6 years ago by sylittlewood

  • Owner changed from sylittlewood to jburel

comment:3 Changed 6 years ago by jburel

  • Cc ux@… added
  • Component changed from from QA to Insight
  • Milestone changed from Unscheduled to 5.0.0-beta2
  • Owner changed from jburel to wmoore
  • Priority changed from minor to major
  • Version set to 4.4.9

Will could you take care of that one.
The problem is that you allow in the editor to save file with name including "\" on Windows (similar problem on Mac with "/").

comment:4 Changed 6 years ago by jamoore

  • Owner changed from wmoore to jamoore
  • Priority changed from major to critical

comment:5 Changed 6 years ago by jamoore

  • Owner changed from jamoore to wmoore
  • Summary changed from BUG:Feedback 4940 to BUG: QA 4940 - minor editor path issue on Windows

Sorry, this wasn't the ticket I was looking for. Will, are you going to get to this?

comment:6 Changed 6 years ago by wmoore

I'm only going to try this when I have very little else to do, since it will take quite a while for me to find the code, fix and test, and the priority is kinda low.

comment:7 Changed 6 years ago by jburel

  • Milestone changed from 5.0.0-beta2 to 5.0.0-beta3

Moving to Beta3, we will have a similar problem when we have "/" in the path

comment:8 Changed 5 years ago by wmoore

  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.97380 sec.)

We're Hiring!