Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Deployment of a plan fails
Deployment of a plan fails [message #1742799] Wed, 07 September 2016 16:38 Go to next message
Bill Mair is currently offline Bill MairFriend
Messages: 72
Registered: July 2009
Member
When I select a plan file in the web interface and press deploy I get the following error:

"Deployment result

File name contains '/' or '\', this is not allowed."

The file name doesn't have any of those special characters but the path to that files does.

What is the deployment tool expecting?

Virgo 3.6.4RELEASE
Re: Deployment of a plan fails [message #1742846 is a reply to message #1742799] Thu, 08 September 2016 08:01 Go to previous messageGo to next message
GianMaria Romanato is currently offline GianMaria RomanatoFriend
Messages: 57
Registered: November 2015
Member
Hi Bill,

I cannot help you with this issue, maybe Florian or Daniel will give you advice (Daniel being out of office this week).

Meanwhile, I am sure you know this, but you can work around this problem by manually copying the plan file into the "pickup" folder.
Finally, please double check that you are not using "/" or "\" in the plan name attribute, inside the plan XML file (just in case this was a wrong error message).

GianMaria.
Re: Deployment of a plan fails [message #1742881 is a reply to message #1742846] Thu, 08 September 2016 12:16 Go to previous messageGo to next message
Bill Mair is currently offline Bill MairFriend
Messages: 72
Registered: July 2009
Member
Hi GianMaria,

It works fine when the plan is added/removed from the pickup directory.

So the plan name in the XML doesn't appear to be the problem.

I wanted to show my customer that they would be able to deploy new/updated plans via the web interface.

It doesn't look like the upload even starts. I think that there is some kind of java script checking in the web interface.
Re: Deployment of a plan fails [message #1743144 is a reply to message #1742881] Mon, 12 September 2016 15:44 Go to previous messageGo to next message
daniel marthaler is currently offline daniel marthalerFriend
Messages: 77
Registered: April 2012
Location: Zürich
Member
Hi Bill

Just tested the deployment of a plan file over Admin Console using Virgo Tomcat Server 3.6.4.RELEASE and I am currently not able to reproduce the behavior you are experiencing.

1. Is it possible for your to post the header of your plan file causing this issue?
2. And please check if the Admin Console only displays the filename of the plan file you have selected as in the attached screenshot:
index.php/fa/27027/0/
3. Are you using https or http in the browser?
4. Which browser and version are you using?

Regards,
Dani

[Updated on: Mon, 12 September 2016 15:45]

Report message to a moderator

Re: Deployment of a plan fails [message #1743147 is a reply to message #1743144] Mon, 12 September 2016 15:57 Go to previous messageGo to next message
Bill Mair is currently offline Bill MairFriend
Messages: 72
Registered: July 2009
Member
Hi Daniel,

1. The file and the plan name (in the xml) are the a simple name, no special characters at all. When it is deployed via the shell (i.e. copied in to pickup) then it works as planned.

2. This is where the difference is. I am attempting to deploy a file from the C drive to a remote server, so the result of the selected file is something like "C:\workspace\virgo-test\test.plan", so the complete path is displayed after selecting the file. I think I had the same problem on my Linux PC as well (/home/USER/workspace/virgo-test/test.plan).

I think that it is something to do with how the plan file name is being processed prior to being sent to virgo for processing.

3. The server has been configured for https and I've set up SPNEGO for authentication. The servers are running on Linux (RHEL) with the Oracle JVM.

4. The customer only has MS Explorer, I'm not sure what version it is though. (I was using the latest firefox)

Bill
Re: Deployment of a plan fails [message #1743150 is a reply to message #1743147] Mon, 12 September 2016 16:11 Go to previous messageGo to next message
daniel marthaler is currently offline daniel marthalerFriend
Messages: 77
Registered: April 2012
Location: Zürich
Member
Are you using the Tomcat flavor or Jetty?
Re: Deployment of a plan fails [message #1743151 is a reply to message #1743150] Mon, 12 September 2016 16:15 Go to previous messageGo to next message
Bill Mair is currently offline Bill MairFriend
Messages: 72
Registered: July 2009
Member
The tomcat version (vts)
Re: Deployment of a plan fails [message #1743178 is a reply to message #1743151] Tue, 13 September 2016 04:56 Go to previous messageGo to next message
daniel marthaler is currently offline daniel marthalerFriend
Messages: 77
Registered: April 2012
Location: Zürich
Member
Hi Bill

Can you please use attached "test.html" file on your machine to select the plan file as file for upload and tell me if you still have the whole path instead of only the filename next to the "Browse" button?

Regards,
Dani
  • Attachment: test.html
    (Size: 0.45KB, Downloaded 292 times)
Re: Deployment of a plan fails [message #1744142 is a reply to message #1743178] Thu, 22 September 2016 16:49 Go to previous messageGo to next message
Bill Mair is currently offline Bill MairFriend
Messages: 72
Registered: July 2009
Member
Hi Dani,

sorry that I didn't reply sooner, I didn't notice your post.

The fully qualified path is displayed in MS explorer (11.0.9600.18426).

Regards,

Bill
Re: Deployment of a plan fails [message #1765340 is a reply to message #1744142] Thu, 08 June 2017 14:39 Go to previous messageGo to next message
Bill Mair is currently offline Bill MairFriend
Messages: 72
Registered: July 2009
Member
This is still an issue in 3.7.0.RELEASE. The fully qualified path is displayed in the box and not just the file name, so it still always fails the "/ or \" test.
Re: Deployment of a plan fails [message #1765359 is a reply to message #1765340] Thu, 08 June 2017 18:31 Go to previous messageGo to next message
daniel marthaler is currently offline daniel marthalerFriend
Messages: 77
Registered: April 2012
Location: Zürich
Member
Hi Bill

I still can't reproduce this behavior. As last time please try to test with the provided html [1]. If this also shows the fully path then i am quite sure that it has nothing to do with Virgos Admin Console application.

And please provide us your plan file so we can have a look at this.

Regards,
Dani

[1] https://www.eclipse.org/forums/index.php?t=getfile&id=27038&

Re: Deployment of a plan fails [message #1765415 is a reply to message #1765359] Fri, 09 June 2017 10:02 Go to previous messageGo to next message
Bill Mair is currently offline Bill MairFriend
Messages: 72
Registered: July 2009
Member
Hi Dani,

The Browser at the customer site shows the entire path when a file is selected "(DOT) [FILE NAME BOX WITH FULL PATH] (Submit Button)" unlike your picture (also what what I see in Firefox on Linux too).

Can the server not just strip anything preceding the last "/" and "\" as the file name and then only report an error if the remainder isn't valid?

Regards,

Bill
Re: Deployment of a plan fails [message #1765417 is a reply to message #1765415] Fri, 09 June 2017 10:19 Go to previous messageGo to next message
daniel marthaler is currently offline daniel marthalerFriend
Messages: 77
Registered: April 2012
Location: Zürich
Member
The weird thing is, no matter what I try I can't reproduce this behavior you describe.
I need to have a look into the source of the management console to go on with this.

Could you please open a Bug and reference this thread in the comments pls?

Regards,
Dani
Re: Deployment of a plan fails [message #1765487 is a reply to message #1765417] Sat, 10 June 2017 20:06 Go to previous messageGo to next message
Bill Mair is currently offline Bill MairFriend
Messages: 72
Registered: July 2009
Member
Hi Dani,

it is a security option that the customer's security team has forced to enabled for additional security. The users always see the full path.

See: <input type='file'> for IE gives full path, need file name only

In that post the option is described: In the Security Settings scroll down until you see "Include local directory path when uploading files to a server" and disable it.

The server should (has to) be able to strip any preceding path information for it to function, even with this option is turned on.

Regards,

Bill
Re: Deployment of a plan fails [message #1765488 is a reply to message #1742799] Sat, 10 June 2017 20:18 Go to previous messageGo to next message
Bill Mair is currently offline Bill MairFriend
Messages: 72
Registered: July 2009
Member
Bug filed: Unable to deploy via web interface when file's path is part of the file name
Re: Deployment of a plan fails [message #1765875 is a reply to message #1765488] Wed, 14 June 2017 06:55 Go to previous messageGo to next message
daniel marthaler is currently offline daniel marthalerFriend
Messages: 77
Registered: April 2012
Location: Zürich
Member
Thank you for opening the Bug.
Re: Deployment of a plan fails [message #1766827 is a reply to message #1742799] Tue, 27 June 2017 16:53 Go to previous message
Bill Mair is currently offline Bill MairFriend
Messages: 72
Registered: July 2009
Member
Fixed in 3.7.1, thanks!
Previous Topic:Wrong OSGi constraint in bundle org.springframework.web_4.3.9.RELEASE
Next Topic:Plan for Virgo 3.7.2?
Goto Forum:
  


Current Time: Mon Nov 04 14:43:53 GMT 2024

Powered by FUDForum. Page generated in 0.04093 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top