[JIRA] Updated: (CC-447) SVN sourcecontrol has got a date format bug on Windows operating systems

"Dan Rollo (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.cruise-control.devel
Message-ID <587580014.1284596810890.JavaMail.jira@chidmzhosting02.thoughtworks.com>
     [ http://jira.public.thoughtworks.org/browse/CC-447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Rollo updated CC-447:
-------------------------

    Fix Version/s: 2.8.5
                       (was: 2.8.4)

> SVN sourcecontrol has got a date format bug on Windows operating systems
> ------------------------------------------------------------------------
>
>                 Key: CC-447
>                 URL: http://jira.public.thoughtworks.org/browse/CC-447
>             Project: CruiseControl
>          Issue Type: Bug
>          Components: Core Application
>    Affects Versions: 2.5
>            Reporter: Marco Tedone
>         Assigned To: Jason Yip
>            Priority: Major
>             Fix For: 2.8.5
>
>         Attachments: SVN.java, SVNTest.java
>
>
> To replicate the problem:
> 1) Run CruiseControl on a Windows XP operating system (I'm running on Windows XP SP2 with Java 5)
> 2) In config.xml, have a <modificationset> like the following:
>   <modificationset>
>       <!-- Checks if the SVN repository for this project has changed -->
>       <!-- <filesystem folder="${jemos.svnrepodir}/Jemos-quartz/" />-->
>       <svn
>             RepositoryLocation="${jemos.svnrepodir}/jemos-repos-quartz"
>             username="username"
>             password="******** />
>     </modificationset>  
> Start CruiseControl. I get the following exception:
> [begin]
> 2006-04-29 15:04:47,063 [Thread-2 ] INFO  Project          - Project jemos-quartz:  bootstrapping
> 2006-04-29 15:04:47,079 [Thread-2 ] INFO  ProjectController - jemos-quartz Controller: build progress event: bootstrapping
> 2006-04-29 15:04:47,079 [Thread-2 ] INFO  Project          - Project jemos-quartz:  checking for modifications
> 2006-04-29 15:04:47,079 [Thread-2 ] INFO  ProjectController - jemos-quartz Controller: build progress event: checking for modifications
> 2006-04-29 15:04:49,157 [Thread-2 ] ERROR SVN              - Error executing svn log command svn log --non-interactive --xml -v -r {2006-04-22T15:13:10Z}:{2006-04-29T14:04:47Z} --username username--password ********** http://jemoserver/jemos-repos-quartz
> org.jdom.input.JDOMParseException: Error on line -1: Premature end of file.
> 	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468)
> 	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:851)
> 	at net.sourceforge.cruisecontrol.sourcecontrols.SVN$SVNLogXMLParser.parse(SVN.java:314)
> 	at net.sourceforge.cruisecontrol.sourcecontrols.SVN$SVNLogXMLParser.parseAndFilter(SVN.java:305)
> 	at net.sourceforge.cruisecontrol.sourcecontrols.SVN.parseStream(SVN.java:274)
> 	at net.sourceforge.cruisecontrol.sourcecontrols.SVN.execHistoryCommand(SVN.java:254)
> 	at net.sourceforge.cruisecontrol.sourcecontrols.SVN.getModifications(SVN.java:192)
> 	at net.sourceforge.cruisecontrol.ModificationSet.getModifications(ModificationSet.java:192)
> 	at net.sourceforge.cruisecontrol.Project.getModifications(Project.java:360)
> 	at net.sourceforge.cruisecontrol.Project.build(Project.java:178)
> 	at net.sourceforge.cruisecontrol.Project.execute(Project.java:142)
> 	at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:66)
> 	at java.lang.Thread.run(Unknown Source)
> Caused by: org.xml.sax.SAXParseException: Premature end of file.
> 	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
> 	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> 	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
> 	... 12 more
> Caused by: 
> org.xml.sax.SAXParseException: Premature end of file.
> 	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
> 	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> 	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
> 	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:851)
> 	at net.sourceforge.cruisecontrol.sourcecontrols.SVN$SVNLogXMLParser.parse(SVN.java:314)
> 	at net.sourceforge.cruisecontrol.sourcecontrols.SVN$SVNLogXMLParser.parseAndFilter(SVN.java:305)
> 	at net.sourceforge.cruisecontrol.sourcecontrols.SVN.parseStream(SVN.java:274)
> 	at net.sourceforge.cruisecontrol.sourcecontrols.SVN.execHistoryCommand(SVN.java:254)
> 	at net.sourceforge.cruisecontrol.sourcecontrols.SVN.getModifications(SVN.java:192)
> 	at net.sourceforge.cruisecontrol.ModificationSet.getModifications(ModificationSet.java:192)
> 	at net.sourceforge.cruisecontrol.Project.getModifications(Project.java:360)
> 	at net.sourceforge.cruisecontrol.Project.build(Project.java:178)
> 	at net.sourceforge.cruisecontrol.Project.execute(Project.java:142)
> 	at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:66)
> 	at java.lang.Thread.run(Unknown Source)
> [/end]
> The problem is in net.sourceforge.cruisecontrol.sourcecontrols.SVN.java, where the date format {FROMDATE}:{TODATE} should be 'escaped' like the following:
> '{FROMDATE}':'{TODATE}'. 
> This solution has been suggested by people in the SVN mailing list. However, it hasn't been tested on Linux operating system. In the mailing list, they told me that another form of escaping is possible, by using '\' instead of apis. 
> I'm running SVN 1.3.0 for Windows. 
> I'll attach copy of SVN and SVNTest patched to solve the problem. Before committing, these changes should be tested on Linux.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.public.thoughtworks.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.