Hi, merch store, I'm not into the details of the protocol, but my guess is that you should send the new, updated checksum only for X-SVN-Result-Fulltext-MD5 and not for X-SVN-Base-Fulltext-MD5.
Best regards Markus Schaber CODESYS® a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.scha...@codesys.com<mailto:m.scha...@codesys.com> | Web: codesys.com<http://www.codesys.com> | CODESYS store: store.codesys.com<http://store.codesys.com> CODESYS forum: forum.codesys.com<http://forum.codesys.com> Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Von: merch store [mailto:primusma...@gmail.com] Gesendet: Mittwoch, 23. Juli 2014 15:07 An: Markus Schaber Cc: users@subversion.apache.org Betreff: Re: http-request PUT during the checkout i get through the responsebody of options (by searching for SVN-Youngest-Rev) the latest revision on this revision i do a get and after that a calcMD5 on the xml i get from this revision so basically yes before the commit i alter the xml-string, do another calcMD5 on the new string and try to commit it 2014-07-23 14:51 GMT+02:00 Markus Schaber <m.scha...@codesys.com<mailto:m.scha...@codesys.com>>: Hi, merch store, which md5 sum are you sending as X-SVN-Base-Fulltext-MD5? The one of the latest revision in the repository? Best regards Markus Schaber CODESYS® a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979<tel:%2B49-831-54031-979> | Fax +49-831-54031-50<tel:%2B49-831-54031-50> E-Mail: m.scha...@codesys.com<mailto:m.scha...@codesys.com> | Web: codesys.com<http://www.codesys.com> | CODESYS store: store.codesys.com<http://store.codesys.com> CODESYS forum: forum.codesys.com<http://forum.codesys.com> Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Von: merch store [mailto:primusma...@gmail.com<mailto:primusma...@gmail.com>] Gesendet: Mittwoch, 23. Juli 2014 10:31 An: Philip Martin; users@subversion.apache.org<mailto:users@subversion.apache.org> Betreff: Re: http-request PUT i already implemented every request needed checkout: OPTIONS, PROPFIND, OPTIONS, REPORT, GET checkin: OPTIONS, POST, PUT, (if succeeded: MERGE, otherwise: DELETE) currently my console says my xml file is out of date i think i've done everthing like svn (checked with wireshark what svn does) the url within PUT is correct, as headers i send the X-SVN-Version-Name, the X-SVN-Base-Fulltext-MD5 and the X-SVN-Result-Fulltext-MD5 contentType is application/vnd.svn-svndiff i think there are 2 possible mistakes first: svn thinks i want to check in an out of date data, so i have to tell svn it's not out of date second: the contentType is not application/vnd.svn-svndiff with the first one i dont know how to do that and with the second one i don't know what content it is just text/xml? after changing the contenttype to text/xml it still says .xml is out of date 2014-07-22 20:22 GMT+02:00 Philip Martin <philip.mar...@wandisco.com<mailto:philip.mar...@wandisco.com>>: merch store <primusma...@gmail.com<mailto:primusma...@gmail.com>> writes: > i want to do a checkin from an html-site. > i already implemented the checkout so i roughly know how to implent > http-requests. > right now i nearly finished the task, i've got just one problem within the > PUT methode. > > during the PUT you have to send a body which is a diff. > but i don't know how svn solved this problem. > i searched through the sources of svn but it was written in c (and little > bit to complex to get an overview) and in multiple steps. > does anybody know how to create the necessary diff or any other ways to > solve this problem? PUT doesn't have to send a diff, sending the full text of the file works. The diff format is described here: http://svn.apache.org/repos/asf/subversion/trunk/notes/svndiff Note that a single PUT will be rejected unless the Apache server has enabled SVNAutoversioning for the repository. Without SVNAutoversioning you must send multiple requests to create a revision: POST, PUT and MERGE; or MKAKTIVITY, CHECKOUT, PUT and MERGE. Writing your own HTTP commit is not trivial, you should consider using the Subversion bindings. -- Philip Martin | Subversion Committer WANdisco // *Non-Stop Data*