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cHV0U3RyZWFtJFdv cmsucnVuKEYNCmlsZUhhbmRsZU91dHB1dFN0cmVhbS5qYXZhOjc5KQ0KICAgICBbamF2YV0gICAg IGF0IG9yZy5oeXBlcmNvbnRlbnQudXRpbC5SdW5uYWJsZVF1ZXVlVGhyZWFkLnJ1bihSdW5uYWJs ZVF1ZXVlVGgNCnJlYWQuamF2YTozMCkNCg0KDQo= |
From: Alex V. <av...@co...> - 2005-05-25 19:07:18
|
Responses embedded below: On May 19, 2005, at 12:44 AM, =E5=AD=99=E7=A3=8A wrote: > =C2=A0 > Yesterday=C2=A0I tried the beta vesion on winXP,jdk1.4.2_07.It seems = that=20 > some bugs still exsists compared to the version checked out from=20 > CVS.They are: > =C2=A0 > 1.When I create a new project ,it doesn't work as it is said in=20 > HyperContent 2 Beta READ ME that > "Use the URL with the mountpoint as just described to enter your=20 > project repository; you may > initially get a "file not found" error when you try to access it.=C2=A0=20= > Wait about 10 seconds and try again - the system only checks for new=20= > projects every 10 seconds." > I had to restart=C2=A0tomcat=C2=A0so that i could enter my new = project.I found=20 > that after created the new project,no directories or files were=20 > created by Hypercontent2 in where the repository should=20 > be.=C2=A0BTW,=C2=A0should I=C2=A0=C2=A0create the project repository = directory by myself ? Just to clarify, you waited at least 10 seconds and were still not able=20= to enter the new project? And after you restarted, you were able to=20 enter it? The filesystem.xml template includes an argument at index 1 whose value=20= is "autocreate" - this tells hypercontent to automatically create the=20 root directory for you. If that argument is present in your=20 filesystem.xml, you should not have to create the repository directory=20= yourself, otherwise you would have to. > =C2=A0 > 2.I configure the project-definition.xml by the project definition xml=20= > file=C2=A0of a 1.3 project.The url pattern such as=20 > /news/*/index.xml,/news/*/details/*=C2=A0..=C2=A0doesn't work.That = means I can't=20 > create files by using the pull down menus for adding content.But the=20= > pattern such as /images/* does work. The "add" menu in version 2.0 does not offer choices to the same level=20= of depth as versions 1.2 - 1.4. This changed behavior is open to=20 debate (I am willing to change it back if people feel strongly about=20 it), but you should be able to create "/news/*/index.xml" files by=20 first clicking to the directory "/news/", and "/news/*/details/*" files=20= by first clicking to a subdirectory of "/news/", etc. > =C2=A0 > 3.At the time I was creating the new project ,I=C2=A0named the project=20= > "lsun" and mounted it to "/lsun/"and hypercontent2 automatically=20 > created the directory "lsun" under /projects/ and then i was in the=20 > path /projects/lsun/ as it was shown on the top of the outer frame.But=20= > when returned to /projects/,I can't see the directory "lsun" in the=20 > list until i restarted tomcat.=C2=A0This problem also occur=C2=A0when = i=20 > create=C2=A0=C2=A0files in the url pattern such as /images/* for this = new=20 > project.I can't see the "images" dir or its files=C2=A0in the list = until i=20 > restart tomcat. The directory listings are cached against the last modified date of the=20= directory itself . . . it is possible that Windows does not=20 automatically update the last modified date of a directory after files=20= or subdirectories have been added, although that would be strange and=20 certainly did not show up in our testing. Anybody else seeing this=20 problem? I will do further testing on Windows to see if I can=20 duplicate it. By the way, is your browser set to "check every time" that pages are=20 up-to-date? What browser are you using? > =C2=A0 > 4.when I uploaded the zip file of=C2=A0the 1.3 project in the workflow = (in=20 > /lsun/),i met an exception which=C2=A0was : > =C2=A0=C2=A0=C2=A0=C2=A0 [java] Upload = org.hypercontent.servlet.FileUpload > =C2=A0=C2=A0=C2=A0=C2=A0 [java] ERROR [FileHandleOutputStream pool7] = (Logger.java:35) - > =C2=A0=C2=A0=C2=A0=C2=A0 [java] = org.hypercontent.filesystem.FileSystemException: The=20 > requested direc > tory was not found:=20 > /workflow-data/upload/g6LB7fc1zT/D:\eclips_workspace\CMS\sit > es\scn\scn_comic.zip > =C2=A0=C2=A0=C2=A0=C2=A0 [java]=C2=A0=C2=A0=C2=A0=C2=A0 at=20 > org.hypercontent.filesystem.impl.LocalEditioningFileSystemImp > l.newFile(LocalEditioningFileSystemImpl.java:82) > =C2=A0=C2=A0=C2=A0=C2=A0 [java]=C2=A0=C2=A0=C2=A0=C2=A0 at=20 > org.hypercontent.filesystem.FileHandle.create(FileHandle.java > :247) > =C2=A0=C2=A0=C2=A0=C2=A0 [java]=C2=A0=C2=A0=C2=A0=C2=A0 at=20 > org.hypercontent.filesystem.FileHandleOutputStream$Work.run(F > ileHandleOutputStream.java:79) > =C2=A0=C2=A0=C2=A0=C2=A0 [java]=C2=A0=C2=A0=C2=A0=C2=A0 at=20 > org.hypercontent.util.RunnableQueueThread.run(RunnableQueueTh > read.java:30) > =C2=A0 Please update the following class from CVS and let me know if it fixes=20= this problem. I just checked in the change, so it may take a few hours=20= to propagate to the sourceforge anonymous CVS. org.hypercontent.servlet.FileUpload -Alex= |