Retrieve "real" resource when setting an older version of a file as current

Hello,
I need to log access to versioned files, and I have the following problem:
With a versioned resource, when the user duplicates an older version of a document as being the current version, the KM sends a "COPY" (ResourceEvent.COPY) Event informing this change. Apparently what the KM does is simply to copy the resource from its version repository to the current folder. The problem is that the resource associated with this event (delivered by IResourceEvent.getResource() )is the version of the resource that the KM saved in /<prefix>/.system/versions/<number>/<number>/<ID>.
Therefore to log this event, I would need a way to get the "real" resource from the KM, to which this version belongs. Does anyone have any idea how to do that?
Thank you very much!
Giuliano R. Lima

Hi,
thanks for the quick reply. However this still doesn't quite solve my problem. What I really need is to get a hold of a IVersionHistoryResource object, so that I can call its getRootVersionRID() method.
The IVersionResource offers a method called getVersionHistoryResource(), but it only delivers an IResource as result.
Any ideas?
Thanks!
Giuliano

Similar Messages

  • When uninstalling an older version of reader, I get an error message about transform paths

    I tried to uninstall version 8.1.2, and I get an error message to verify that the specified transform paths are valid. Some body please help. I could use the 90mb of space it's taking up.
    My system is a laptop, vista 32 bit. No security update issues are involved. I am running version 10, and simply want some memory back.

    Claudia, thanks for the link. It removed the old version in about 30 seconds Microsoft Fixit looks like a great repair tool. Thanx for the hook-up. Redbaron8.
                                                                                    Think of your family and friends often.
    Always keep an eye on your enemies,
    and be sure you know the difference between them!
    Willy
    Date: Thu, 12 Jan 2012 09:35:24 -0700
    From: [email protected]
    To: [email protected]
    Subject: When uninstalling an older version of reader, I get an error message about transform paths
        Re: When uninstalling an older version of reader, I get an error message about transform paths
        created by Claudio González in Adobe Reader - View the full discussion
    If you feel you need erasing 90 MB. I would suggest getting some additional storage medium (external HD, ...). In any case, you may want to try the following: Run this fix from Microsoft: http://support.microsoft.com/mats/Program_Install_and_Uninstall Uninstall Reader using Add/Remove Programs
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4135555#4135555
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4135555#4135555. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Download older version of a file from SharePoint Document Library using CSOM and 404 error

    Hi,
    I am trying to download previous versions including Major and Minor versions of documents from SharePoint Online using CSOM. I get 404 error when I try to download the file. I found several posts on various discussion forums where people are getting same
    error but none of those have any solution/answer. Below is one of the threads and sample code I have tried that results in 404 error. If I use the link in browser directly, I am able to download the file. Also I am able to download the current version of file
    using CSOM without any problem, it is only the older versions that give me 404 in CSOM.
    http://qandasys.info/how-to-download-the-historical-file-version-content-using-csom/
    public int GetStreamFromFile(string docid, string lib, string fileurl, ClientContext clientContext, int iuserid, string Version, bool isCurrrent)
    if(!isCurrent)
    List LibraryName = clientContext.Web.Lists.GetByTitle(lib);
    clientContext.Load(LibraryName);
    clientContext.ExecuteQuery();
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml = "" + fileurl +
    Microsoft.SharePoint.Client.ListItemCollection collListItem = LibraryName.GetItems(camlQuery);
    clientContext.Load(collListItem, items => items.Include(item => item.Id, item => item["FileLeafRef"], item => item["LinkFilename"],
    item => item["FileRef"], item => item["File_x0020_Size"], item => item["DocIcon"], item => item.File.Versions));
    //clientContext.Load(collListItem);
    clientContext.ExecuteQuery();
    foreach (Microsoft.SharePoint.Client.ListItem oListItem in collListItem)
    //string fileurl1 = (string)oListItem["FileRef"];
    //string filename = (string)oListItem["LinkFilename"];
    foreach (FileVersion version in oListItem.File.Versions)
    if (Version == version.VersionLabel)
    //Added excutequery to get object one more time as per blog
    //http://social.technet.microsoft.com/Forums/de-DE/sharepointdevelopmentprevious/thread/88a05256-8694-4e40-863d-6c77512e079b
    clientContext.ExecuteQuery();
    FileInformation fileInformation = ClientOM.File.OpenBinaryDirect(clientContext,version.Url);
    bytesarr = ReadFully(fileInformation.Stream);
    Darwaish

    Hi,
    According to your description,
    I know you want to get older version of a file from SharePoint Document Library using Client Object Model.
    The following code snippet for your reference:
    public void GetVersions()
    ClientContext clientContext = new ClientContext(“http://SPSite”);
    Web site = clientContext.Web;
    clientContext.Load(site);
    clientContext.ExecuteQuery();
    File file = site.GetFileByServerRelativeUrl(“/Shared Documents/mydocument.doc”);
    clientContext.Load(file);
    clientContext.ExecuteQuery();
    ListItem currentItem = file.ListItemAllFields;
    clientContext.Load(currentItem);
    clientContext.ExecuteQuery();
    FileVersionCollection versions = file.Versions;
    clientContext.Load(versions);
    clientContext.ExecuteQuery();
    if (versions != null)
    foreach(FileVersion _version in versions)
    Console.WriteLine(“Version : {0}”,_version.VersionLabel);
    More information:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.file.versions.aspx
    Best Regards,
    Dennis Guo

  • Previewing .iBooks file on iPad opens older versions of the file

    I'm in the process of developing a file in iBooks Author and to preview it, I email the .iBooks file to myself as well as my reviewers to preview it on our iPads. When I preview my .ibook file in iBooks, it open a previous version of the same file. How can I get it to open the latest version?
    I tried deleting all previous versions from iBooks, deleting my previous emails containing older versions of the file.
    Thanks!

    daytoday wrote:
    Wondering if you found a solution to your problem that might help me solve mine.
    I would try deleting all titles from iBooks, uninstalling it, and reinstalling it. Before syncing for the first time, make sure that only the correct version of the book is in iTunes. Also take any older versions and move them into a different location in the file system. Unless you use the consolidated library feature in iTunes, iTunes might possibly be confused and be pointing at an older version of the book. You could also search your iTunes library for stale copies of the book. If you find any, delete them. It sometimes happens that the iTunes library XML file gets out of sync with reality.
    This might help. If not, I'm out of ideas, sorry.
    Michi.

  • How do I set my older version of Pages as the default when opening files?

    I currently have two versions (Pages '08 3.0.3 and Pages '09 4.2) on my computer. I am finding that when others send me a document created in the older version of Pages, when I open it, it converts it to the newer version. If I make changes and send it back, that same person with only the older version cannot open the file. I know I can duplicate the file, and save a copy as the Pages '08 version when sending the file back, but I'd like to skip this step. Remembering to control click each new file to choose which version I want to open the file in seems like an extra, unecessary step as well. I simply want the files sent to me to open in the older version, so I don't need to go through these extra steps each time. Anyone have any suggestions or tips for me? Any help would be appreciated. Thanks!

    I do try to keep Pages 08 open on my computer, but I sometimes find that my documents will still convert to the 09 version upon opening them, even if I don't make any changes or even save the file myself. I also find that I do not get the "save as" option in Pages 09 when it is not a file I created myself. You wouldn't think a basic word processing file would have this much trouble opening in a version that really isn't that much older. I've been doing a lot of copying and pasting into the older version when I send files out. This really makes the 09 version inconvenient to me. If it weren't for all of my files that now require the 09 version to open (because of this default setting everything I open seems to become an 09 version) I'd get rid of this version all together, as it is not compatible for so many other people with whom I work!

  • DTR: How do I set an older version as active version

    Hello,
    Using the DTR I can sync to a specific Version of a File using "Sync to this version" from the context menu of the Version Graph.
    Now I want to set the Version I synced to as the active version. Is there a possibility to do this?
    Greets Johann

    Hi
    When I understand the question right, then the intension is to have an older version now as the current active version in the workspace on DTR.
    Up to now DTR does not yet provide this functionality. But there is a workaround:
    - please sync the file to the version that afterwards should get active (e.g. using context menu in version graph)
    - and copy the synced file to a temporary location
    - then sync the file again to the current active version
    - and check-out for edit this version of the file
    - then copy the older version from the temporary location over the checked-out version
    - check-in
    Please be aware that this changes the current active version in the workspace and that this change is visible to everyone accessing the workspace.
    Regards, Uli

  • Help retrieving an older version of a file

    I am trying recall an older version of an excel document as the current file is apparently corrupt, how do I go about accomplishing this?

     
    Hi, 
    When you are retrieving your files, there's an option that says show older versions that allows you to retrieve previous versions of the files.
    Please see page 52 of the user manual 

  • Is there a way to restrict handles when snapping like older versions of illustrator?

    In previous versions of illustrator, when you snapped to grid the handles would snap as well. This made making complicated precise line work easier and faster. I noticed in the October update that the removal of this function is being touted as an upgrade/feature??
    "When snapping is turned on, your anchor points and handles (direction lines) align to your choice of pixel, grid, or point. However, handles snapping to the grid restricts the freedom with which you draw. In the 2014 release of Illustrator CC, whatever you choose to snap to, handles are completely unrestricted. When handles are not subject to being snapped to a grid, you have much finer control over drawing and editing workflows."
    ...that handle restriction was actually very, very useful to me. Any way to get that back/toggle it on and off? Without having to downgrade to older versions of illustrator?
    Thanks for any help you can provide!

    The answer is not yet. Most people are hoping that the engineers will introduce a toggle to return the old behavior as an option but don't hold your breath. If you absolutely need it you will have to revert to an earlier version.

  • Maintain PDF layering when opening in older version of Illustrator?

    As the title explains, I was wondering if it may be possible to avoid data loss upon opening a PDF in an older version of Illustrator. I have a client who is still using CS5, and needs to have editable PDF files that maintain their hierarchy.
    Currently standing, I get the "This file was generated by a newer version of Illustrator" error, which flattens the artwork into a single layer. Is there a workaround for this, or am I out of luck?
    Thank you in advanced for your help.

    Have you tried saving as CS5. There's a drop-down menu for choosing a version. It will still flatten some things that are not available in the older version, but you may have better luck keeping the layers intact that way.

  • Edge Animate CC saving older version of my file

    I've been working on a file in EA and I changed some of the imported images and saved the file . I made sure that the publish settings were correct. But when I try to Place the .oam file into a Muse CC project it always gives me the older version of the EA file before the changes.

    Hi Daniel
    The issue is because, the first time you publish as .oam, a new image is captured from stage as (default) poster.png and every time  this is used as poster image for the .oam. However, when you replace the image and if this poster.png is already present then the .oam is published with new image but older poster.png.
    The work around to overcome the problem is, delete poster.png from the 'images' directory of your animate source(from your OS), and then import and re-publish with new images. This time, the .oam poster image will automatically be updated.
    Do let me know If it solved the problem.
    Thanks
    Manigandan

  • Application developed \in older versions is not workin in current version

    Has anyone else had a problem running applications developed in previous versions of Jdeveloper with the new version? I started developing using the TUHRA example with using 3 previous versions and until I downloaded the current version it ran fine. In the current version I get strange errors that I have not gotten in older versions like The content of this page failed to load as expected because data transmission was interrupted. Please try again, or contact your system administrator and java.lang.String cannot be cast to oracle.jbo.domain.Number on things that used to work.

    Spot color are just channels. You could use a green spot color and give your printer a note to print it red and it would come out perfect. Except for preview purposes the actual color used does not matter. That's the whole point of spot colors. So for what it's worth, take out your reference chart and find a matching color to use in the meantime if you don't have the original color library. Otherwise perhaps Pantone are providing suitable color books for download on their site...
    Mylenium

  • How to set up older version of Java JDK?

    I am a Java Developer, and I recently bought a Mac.  I also just started working for a Client who is using JDK 1.6.0_23, and this is not going to change.  The code fails to compile when running through the latest Java 1.6 JDK, so I REALLY need to download and set up JDK 1.6.0_23.  Is this possible?  If I can't get this working, I will unfortunately have to use the Windows machine that the Client gave me.
    Thanks in advance.

    I removed the old program.
    I am using this line in my autoexec.bat
    path = c:\jdk1.3.1_01\bin
    I understand that I don't need to set any classpath. If I am wrong, would this line be correct ?
    classpath = %classpath%;c:\jdk1.3.1_0\bin;c:\jdk1.3.1_01\lib\tools.jar

  • Want to open Kodak Photo CD files (.PCD) in Photoshop CS5.  In CS4 i copied file "Photo CD.8BI"  from an older version into the File Format folder.  This does not work with CS5.  Any fix?

    I have several old Kodak Photo CD with PCD image files.  I am now using Photoshop CS5.  Some years ago while using Photoshop CS4 I copied a file:  "Photo CD.8BI" from an older, CS2, version to the Plug-ins/File Format folder of CS4.  This does not appear to work with CS5.  Any fix?

    It can be made to work, but you have to run the 32 bit version of Photoshop CS5, and as I recall there's an additional DLL called pcdlib32.dll that's needed from the old installation.
    See also:  Open Kodak PhotoCD files in PS CS5 - is it possible? (Win XP)
    -Noel

  • Set older version as active in DTR

    Hi community,
    I'm struggling with this simple requirement. I want to to set an older version of a WD4J component as active. I can snych it to this version without any problem but when i try to edit and check in, it says that the source is out of synch and i can't do anything. What do i have to do to achieve this?
    Many thanks,
    Tobias

    Actually i don't look for another "hack" and for web dynpro java this would be great pain to replace it all manually. So the NWDI does not provide this option? This is very very sad... but it fits perfect to some of the previous eyperiences i had with the SAP Java Development .
    But thank you for your help Hamendra.
    Regards,
    Tobias

  • Retrieve an older version in object manager

    hi,
    i wont to now please how can i Retrieve
    a transport to old version (version before) in qa or prod.
    Regards

    Hi,
    In SE38, You can use the menu, Utilities ->Version Management to see all the versions. Each version will be having the transport request number and the author.
    You can even compare between the versions too, to know differences in the code.
    If you want to retrieve or activate or use some older version, simply come through the program change mode, select the version management from the menu and check mark that version and click on menu Versions ->Retrive and then finally activate.
    You can check the versions in any system.
    Hope this helps.
    Thanks,
    Srinivasa

Maybe you are looking for

  • How do I assign mapids to reference a merged chm file?

    Hello, I am using RoboHelp 9.0.2.271 on a Windows 7 64 bit machine to create chm files. I have 2 chm files I would like to merge and be able to create mapids for context-sensitive help. I created each chm in its own project directory with each having

  • Impossible to transfert films from Apple TV to iMac

    Impossible to transfer films bought on Apple Store from Apple TV to my iMac. So I cannot add those films to my iPad.

  • Help im going crazy

    Ok my problem is that I have to order the numbers that are inside the text fields but it keeps showing me : class, interface or enum expected and I just cant find it, I thought it was because of the {} but apparently not so I would really appreciate

  • Waiting (%)     Metrics "Database Time Spent Waiting (%)" is at 69.64818 for event class "Commit"

    Hi, Can any one help me on this warning, i got this warning on ORACLE ENTERPRISE MANAGER Waits by Wait Class Database Time Spent Waiting (%) Metrics "Database Time Spent Waiting (%)" is at 69.64818 for event class "Commit" Below are our environment d

  • CC&B  - Market Message

    How to customize the system for Market Message Inbound and Outbound Message requirements? Is there any CC&B help documents are available.