Thank you. It returns OK now, but the view keeps the same configurarion. -----Mensaje original----- De: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] En nombre de Daniel Beck Enviado el: miércoles, 24 de octubre de 2012 19:41 Para: jenkinsci-users@googlegroups.com Asunto: Re: Rest API for view manupulation
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-m...@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. > > 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.