jenkins - File name too long ERROR

1,203 views
Skip to first unread message

Levin, Ilya

unread,
Oct 24, 2012, 7:14:02 AM10/24/12
to jenkins...@googlegroups.com

Hi,

 

I’m using Jenkins 1.458.

When I try to delete a file with a long path I get this ERROR.

Is there a way to overcome this in jenkins?

 

Thanks

David Mata Gorriz

unread,
Oct 24, 2012, 8:19:34 AM10/24/12
to jenkins...@googlegroups.com

Hi.

 

I have problems with REST API for view manipulation. Every thing I send is forbidden. Do you now if this is an issue? I didn’t find it in Jira.

 

A small example with wget y my Linux.

 

wget https://mytestserver:8443/jenkins/view/MAIN%20VIEW/view/app3/config.xml --post-file=conf.xml --no-check-certificate  --http-user=adminciuser --http-password=password

--2012-10-24 14:06:11--  https://mytestserver:8443/jenkins/view/Desglose%20Core/view/app3/config.xml

connected.

WARNING: cannot verify -----  certificate, issued by ------

  Unable to locally verify the issuer's authority.

HTTP request sent, awaiting response... 403 Forbidden

2012-10-24 14:06:11 ERROR 403: Forbidden.

 

Thanks.



AVISO DE CONFIDENCIALIDAD
Este correo electrónico y cualquier fichero con el transmitido son confidenciales, contienen información privilegiada y son de conocimiento y uso exclusivo de la persona o entidad a quienes han sido dirigidos. Su contenido no puede ser modificado. En caso de recibir este mensaje por error, le rogamos que informe de inmediato al remitente y proceda a destruir dicho mensaje y cualquier copia que hubiese realizado. Como el correo electrónico puede verse afectado por fallos técnicos u operacionales, no se garantiza su recepción de forma adecuada y puede estar sujeta a retrasos. Cualquier
comunicación que esté supeditada a una fecha u hora pactadas previamente, también deberá ser enviada por correo convencional o fax. El correo electrónico no garantiza la confidencialidad del contenido de los mensajes. Si el destinatario de este mensaje tiene cualquier objeción a la utilización de este medio, deberá ponerse en contacto de inmediato con el remitente. Está estrictamente prohibido el uso, copia o distribución por cualquier medio no autorizado de este mensaje y de cualquier fichero en el contenido.
CONFIDENTIALITY WARNING
This e-mail and any files transmitted with it are confidential and privileged, and are intented solely for the use of the individual or entity to whom they are addressed. Their contents may not be altered. If you are not the intended recipient of this communication please notify the sender and delete and destroy all copies immediately. As e-mail can be subject to operational or technical difficulties, the quality of reception may be affected and it is subject to time delays. Therefore, communications that are subject to deadlines should also be sent by post or fax. Please note that one cannot guarantee the confidentiality of e-mail messages. If the recipient of this message objects to the use of Internet e-mail, please notify the sender immediately. Any unauthorised direct or indirect use, dissemination, distribution or copying of this message is prohibited.

Daniel Beck

unread,
Oct 24, 2012, 1:41:04 PM10/24/12
to jenkins...@googlegroups.com
Hi,

try with --auth-no-challenge. IIRC it depends on whether Jenkins is set up to allow anonymous access whether this is required.

Regards,
Daniel

On 24.10.2012, at 14:19, David Mata Gorriz <david...@tecnologia.cajamar.es> wrote:

> Hi.
>
> I have problems with REST API for view manipulation. Every thing I send is forbidden. Do you now if this is an issue? I didn’t find it in Jira.
>
> A small example with wget y my Linux.
>
> wget https://mytestserver:8443/jenkins/view/MAIN%20VIEW/view/app3/config.xml --post-file=conf.xml --no-check-certificate --http-user=adminciuser --http-password=password
> --2012-10-24 14:06:11-- https://mytestserver:8443/jenkins/view/Desglose%20Core/view/app3/config.xml
> connected.
> WARNING: cannot verify ----- certificate, issued by ------
> Unable to locally verify the issuer's authority.
> HTTP request sent, awaiting response... 403 Forbidden
> 2012-10-24 14:06:11 ERROR 403: Forbidden.
>
> Thanks.
>

Mark Waite

unread,
Oct 24, 2012, 6:17:20 PM10/24/12
to jenkins...@googlegroups.com
Are you running on a Windows machine? 

Is the path that you are attempting to delete longer than 250 characters?

If so, then you might review https://issues.jenkins-ci.org/browse/JENKINS-15418 and the git pull request https://github.com/jenkinsci/jenkins/pull/593 .

There seems to be a hint in those commit messages that if you're running JDK 7, you won't see that problem (even without the proposed code change).  Are you running JDK 6 or JDK 7?

Mark Waite



From: "Levin, Ilya" <ilya....@hp.com>
To: "jenkins...@googlegroups.com" <jenkins...@googlegroups.com>
Sent: Wednesday, October 24, 2012 5:14 AM
Subject: jenkins - File name too long ERROR

David Mata Gorriz

unread,
Oct 25, 2012, 4:18:36 AM10/25/12
to jenkins...@googlegroups.com
Not for posting data. Thank you, Daniel.

With auth-no-challenge I get "http 200" but old data keeps being there.

-----Mensaje original-----
De: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] En nombre de Daniel Beck
Enviado el: miércoles, 24 de octubre de 2012 19:41
Para: jenkins...@googlegroups.com
Asunto: Re: Rest API for view manupulation

David Mata Gorriz

unread,
Oct 25, 2012, 4:24:02 AM10/25/12
to jenkins...@googlegroups.com
Thank you. It returns OK now, but the view keeps the same configurarion.

-----Mensaje original-----
De: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] En nombre de Daniel Beck
Enviado el: miércoles, 24 de octubre de 2012 19:41
Para: jenkins...@googlegroups.com
Asunto: Re: Rest API for view manupulation

Reply all
Reply to author
Forward
0 new messages