You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Hima <hi...@yahoo.com> on 2005/06/15 13:55:16 UTC
History of Files
Hi all!
My problem has been solved now.Getting the versions of
files.My problem is
now ..how to view the history of files versioned?Like
for example
/files/myFile is versioned.
/history/1 is the location of the history of
/files/myFile.
But when I click on slide/history/1 it is giving error
message saying
HTTP Status 404 - Not Found: Revision 0.0 of object
/history/1 not found
I can view them in My NetworkPlaces "Slide on
LocalHost" at
http://localhost:8080/slide/history/1 but can not
see them when running
slide.What might be the problem?Any help on this will
be greatful...
Thanks
HimaBindu
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: History of Files
Posted by Hima <he...@yahoo.co.in>.
Raman Sandhu <raman.sandhu <at> adeptia.com> writes:
>
> Hi Hima
>
> I m also using the same code and tried that option and it works fine but if
> I just want to put specified file in version control on all set of files.
> And another issue is how we can get files based on the version.
>
> Thanks
> Raman
> HimaBindu
Hi Raman!
So the code worked for u.Then what might be the problem in my process of
steps.Are u able to view the contents of all the versioned files in
slide/history..on the browser?If yes,can u send me the history.def,1.def(the
directory where u find history of versioned file) ,so that I can get some idea
of where am I wrong.Is there anything like I have to set
<uriRedirectorClass>org.apache.slide.webdav.util.DeltavUriRedirector</uriRedire
ctorClass> in Domain.xml file?
Thanks in Advance
HimaBindu
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: History of Files
Posted by Raman Sandhu <ra...@adeptia.com>.
Hi Hima
I m also using the same code and tried that option and it works fine but if
I just want to put specified file in version control on all set of files.
And another issue is how we can get files based on the version.
Thanks
Raman
-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Hima
Sent: Thursday, June 16, 2005 1:32 PM
To: slide-user@jakarta.apache.org
Subject: Re: History of Files
Raman Sandhu <raman.sandhu <at> adeptia.com> writes:
>
> Hi Hima
>
> How are you putting files in version control. Can you send me sample code.
>
> Thanks
> Raman
>
> -----Original Message-----
> From: Hima [mailto:hima19 <at> yahoo.com]
> Sent: Wednesday, June 15, 2005 5:25 PM
> To: Slide
> Subject: History of Files
>
> Hi all!
>
> My problem has been solved now.Getting the versions of
> files.My problem is
> now ..how to view the history of files versioned?Like
> for example
> /files/myFile is versioned.
> /history/1 is the location of the history of
> /files/myFile.
> But when I click on slide/history/1 it is giving error
> message saying
>
> HTTP Status 404 - Not Found: Revision 0.0 of object
> /history/1 not found
>
> I can view them in My NetworkPlaces "Slide on
> LocalHost" at
> http://localhost:8080/slide/history/1 but can not
> see them when running
> slide.What might be the problem?Any help on this will
> be greatful...
>
> Thanks
> HimaBindu
Hi Raman
I have used org.apache.webdav.lib.WebdavResource for cteating the
files..code
looks like this...
HttpURL homeUrl = new HttpURL("http://localhost:8080/slide/files");
homeUrl.setUserinfo("root","root");
res = new WebdavResource(homeUrl);
boolean success2=res.putMethod("/slide/files/testDir1/testFile1","test data
");
I have set <parameter name="auto-version-control">true</parameter> in
Domain.xml.When I see the file in DAV Explorer,it is said that the file has
been kept in Version Control.
I have updated the file twice by executing the same code with different
content data like
boolean success2=res.putMethod("/slide/files/testDir1/testFile1","test data
updated once");
boolean success2=res.putMethod("/slide/files/testDir1/testFile1","test data
updated twice");
Now when I see the Version Report of that file in DAVExplorer,it is
giving information like
version author Date Size Checked-in comment
1.0 root --- 10 INITIAL VERSION
1.1 root --- 23
1.2 root --- 37
and in the directory "slide/history/1" of DAVExplorer I can see similar type
of information.
I can view them at My NetworkPlaces "Slide on LocalHost" at
http://localhost:8080/slide/history/1 .There I can see all the three
versioned files with display name "testFile1" with their contents
at /slide/history/1/1.2 , /slide/history/1/1.1 and
/slide/history/1/1.0
respt....But can not see them when running slide.
I will be thankfull if u could help me on this..
Thanks
HimaBindu
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: History of Files
Posted by Hima <he...@yahoo.co.in>.
Raman Sandhu <raman.sandhu <at> adeptia.com> writes:
>
> Hi Hima
>
> How are you putting files in version control. Can you send me sample code.
>
> Thanks
> Raman
>
> -----Original Message-----
> From: Hima [mailto:hima19 <at> yahoo.com]
> Sent: Wednesday, June 15, 2005 5:25 PM
> To: Slide
> Subject: History of Files
>
> Hi all!
>
> My problem has been solved now.Getting the versions of
> files.My problem is
> now ..how to view the history of files versioned?Like
> for example
> /files/myFile is versioned.
> /history/1 is the location of the history of
> /files/myFile.
> But when I click on slide/history/1 it is giving error
> message saying
>
> HTTP Status 404 - Not Found: Revision 0.0 of object
> /history/1 not found
>
> I can view them in My NetworkPlaces "Slide on
> LocalHost" at
> http://localhost:8080/slide/history/1 but can not
> see them when running
> slide.What might be the problem?Any help on this will
> be greatful...
>
> Thanks
> HimaBindu
Hi Raman
I have used org.apache.webdav.lib.WebdavResource for cteating the files..code
looks like this...
HttpURL homeUrl = new HttpURL("http://localhost:8080/slide/files");
homeUrl.setUserinfo("root","root");
res = new WebdavResource(homeUrl);
boolean success2=res.putMethod("/slide/files/testDir1/testFile1","test data ");
I have set <parameter name="auto-version-control">true</parameter> in
Domain.xml.When I see the file in DAV Explorer,it is said that the file has
been kept in Version Control.
I have updated the file twice by executing the same code with different
content data like
boolean success2=res.putMethod("/slide/files/testDir1/testFile1","test data
updated once");
boolean success2=res.putMethod("/slide/files/testDir1/testFile1","test data
updated twice");
Now when I see the Version Report of that file in DAVExplorer,it is
giving information like
version author Date Size Checked-in comment
1.0 root --- 10 INITIAL VERSION
1.1 root --- 23
1.2 root --- 37
and in the directory "slide/history/1" of DAVExplorer I can see similar type
of information.
I can view them at My NetworkPlaces "Slide on LocalHost" at
http://localhost:8080/slide/history/1 .There I can see all the three
versioned files with display name "testFile1" with their contents
at /slide/history/1/1.2 , /slide/history/1/1.1 and /slide/history/1/1.0
respt....But can not see them when running slide.
I will be thankfull if u could help me on this..
Thanks
HimaBindu
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
RE: History of Files
Posted by Raman Sandhu <ra...@adeptia.com>.
Hi Hima
How are you putting files in version control. Can you send me sample code.
Thanks
Raman
-----Original Message-----
From: Hima [mailto:hima19@yahoo.com]
Sent: Wednesday, June 15, 2005 5:25 PM
To: Slide
Subject: History of Files
Hi all!
My problem has been solved now.Getting the versions of
files.My problem is
now ..how to view the history of files versioned?Like
for example
/files/myFile is versioned.
/history/1 is the location of the history of
/files/myFile.
But when I click on slide/history/1 it is giving error
message saying
HTTP Status 404 - Not Found: Revision 0.0 of object
/history/1 not found
I can view them in My NetworkPlaces "Slide on
LocalHost" at
http://localhost:8080/slide/history/1 but can not
see them when running
slide.What might be the problem?Any help on this will
be greatful...
Thanks
HimaBindu
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org