Jump to content
Ketarin forum
  • Announcements


  • Content count

  • Joined

  • Last visited

About tsoutsas

  1. Execution order of an application's commands

    Using replace doesn't help. The example I provided is spitting out the contents of app variables in the download location and "Files\" isn't something that can be derived by Ketarin itself, hence the need to do it in a script before downloading. Irrespective of that, I'm not looking to solve the example I provided. It was only meant to give context. Another, less verbose, non-fringe example (and the reason I posted to being with) is with working with password protected websites. Since Ketarin does not currently have the ability to read cookies, some sites are impossible to load into Ketarin. I got around that by grabbing the necessary values to authenticate using a pre-download script which writes the values into variables in the app profile. Because the execution order of "Execute the following command before downloading", these values are not updated when Ketarin attempts to visit the download URL and it errors with a 404. I rerun the app profile again and it downloads just fine because those variables are now valid at the time of execution.
  2. Execution order of an application's commands

    I get that, but what happens when Ketarin can't access the relevant triggers (e.g. hash data, etc.) because it can't resolve a directory or URL due to "old" data? The first time I encountered this execution order problem was because of the "download location" field. Every application profile I have is built off a template that shares the same basic download location: \\server\software\{company}\{app_name}\archive\{version}\{platform}\{ps_appdeploy}{app_name:replace: :_}_installer.{url:ext} For Microsoft OneDrive, it resolves to: \\server\software\Microsoft\OneDrive\archive\17.3.6760.0105\macOS\OneDrive_installer.pkg This generic download location is software depot for an IT department and some installers have a deployment script wrapped around it. When this occurs, it requires the downloaded file to live in a nested folder. In order for Ketarin to place the download in the correct folder, a normally blank variable is assigned a value of "Files\" to adjust the location. So another piece of software, like SONY Catalyst Browse is resolved to: \\server\software\SONY\Catalyst Browse\archive\2016.3\win_x64\Files\Catalyst_Browse_installer.exe Who the heck wants to manually keep track of a variable that determines it's download location from a template on hundreds of application profiles? I don't, so I wrote a script to detect the "Files\" folder and dynamically adjust the download path before it's executed. This is where the problem lies. Ketarin's timing of "Execute the following command before downloading" occurs after its already resolved the download location it's going to use, despite those value changing "before downloading". While this is not the scenario that led me to start this post, I think it's enough of an example to get the point across.
  3. No user-agent on variable requests

    Mileage may vary, but here's a "workaround" for you. I say "workaround" because, while the method I'm sharing successfully sets an application profile's user agent on update, finding one of the few applicable ones in my list to test is like finding a needle in a haystack. Making the details verbose for anyone who hasn't worked with these settings. Create a Global Variable: File -> Settings -> Global variables Name = user_agent Value = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3007.0 Safari/537.36 Create a Global Command: File -> Settings -> Commands Edit command for event = Before updating an application Command = PowerShell script $app."UserAgent" = $globalvars."user_agent".CachedContent
  4. SSL/TLS Errors?

    I may have found the reason this is happening. processing.org only supports TLS 1.2 https://www.ssllabs.com/ssltest/analyze.html?d=processing.org
  5. unable to resolve some {variables} in regex field in 1.8.7

    In versions of Ketarin before 1.8.7, the matched regex would be highlighted. In 1.8.7, it doesn't match at all. I've attached a sample profile: ketarin.txt
  6. I have written some code to use an application's "Execute the following command before downloading" to assign values to local variables. When testing the code, I realized that the variables in an application profile are getting resolved before this code is executed. In the case of my implementation, I have set up other variables that rely on pre-download information to resolve urls correctly. "Technically" this command does what it says, as the code in this section will run before an application is downloaded. However, I believe changing the order opens up more functionality to someone who's using these commands. If the order of execution is not critical, please consider changing this order or giving the option to change it per profile.
  7. SSL/TLS Errors?

    Is this something that has resurfaced? I've noticed two of my profiles are getting this error in 1.8.6+. https://processing.org/ https://www.fsadownload.ed.gov
  8. Request for reading cookies

    I would like to see this too. I've been struggling with automating a Ketarin application profile to grab a file behind a username and password. I've gotten it to work, provided I manually log into the site in a browser and copy the value of a cookie into a global variable in Ketarin. I haven't found any other method for grabbing it. While I'm thrilled to have gotten as far as I have, 100% automation would be preferred.
  9. Reordering variables

    I was going to make a comment in my post mentioning that I knew it was possible via the method you've described. That's why it's a feature request. It would be much more convenient to have it built in with an up/down arrow next to the +/-. I have avoided making these changes manually because it's only a cosmetic thing and I have hundreds of profiles I'd like to update. Not to mention it's not something I look forward to because the performance of my instance of Ketarin is really bogged down by the number of applications I maintain.
  10. Reordering variables

    As someone who uses a lot of variables in their profiles, I would love to see a way to reorder them in the Edit Variables interface.
  11. unable to resolve some {variables} in regex field in 1.8.7

    I tried as it was newer than what I was previously using, and it appears that this version also has the bug I've described. Although, while I was doing this, I noticed something new to include. The bug only occurs when viewing the regex match in the Edit Variables dialog box. Existing profiles that worked in a previous version continue to update successfully.
  12. unable to resolve some {variables} in regex field in 1.8.7

    600 was beta2 and looks to be removed from the forum, but is still listed in the 1.8.7 thread: https://ketarin.org/forum/index.php?app=core&module=attach&section=attach&attach_id=80
  13. Just created my first new profile in 1.8.7, and noticed {version} (one that I declared in variables) wasn't getting resolved in the regular expression field. Wondering why this wasn't working, I created another variable with a textual content value. This didn't resolve either. Before this build I was running I relaunched this version, opened the same profile, and it worked just fine.
  14. Usage of "applications" forum app

    Despite how much I use Ketarin, which is almost every workday, I regretfully don't visit the forum unless I think there's a bug or have a feature request. As such, I never noticed a forum for application profiles (perhaps because it's not listed as a discussion group). With that said, I downloaded a few profiles to get an idea what it was about, and (with no offense to their authors) didn't find much value in what I downloaded. If someone would like to point me to an exceptional example, I'd be happy to take another look. I do like the idea, but I think for the concept to be truly useful it needs to be organized differently. Sub-forums so that all applications profiles for a product are grouped together (e.g. Skype has 15 profiles). In addition, some sort of enforced rating indicator that's visible in the subject line (e.g. Sumatra PDF was the only one I found).
  15. It appears Ketarin is having difficultly downloading the Content-Type "application/force-download". Unfortunately, I cannot provide a URL to duplicate this because this file is sitting behind credentials from an enterprise vendor, however I have included some debugging details below from the Tamper Data plugin in Firefox to provide context. To the right of "The Uri string is too long", it shows the beginning of the content it's trying to download. In the case of the MSI listed below, binary data was shown. In the case of a PDF and TXT file, you can see the text from the beginning of the file. Host=www.dea.com User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:49.0) Gecko/20100101 Firefox/49.0 Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language=en-US,en;q=0.5 Accept-Encoding=gzip, deflate, br Referer=https://www.dea.com/ServiceAndSupport/productdownloads.aspx Cookie=ASP.NET_SessionId=vcvhoy55q412iq45anzlt1ft Connection=keep-alive Upgrade-Insecure-Requests=1 Status=OK - 200 Cache-Control=private Content-Length=40083456 Content-Type=application/force-download Server=Microsoft-IIS/7.0 Content-Disposition=attachment; filename="EMSClient.msi" x-aspnet-version=2.0.50727 x-powered-by=ASP.NET Date=Mon, 10 Oct 2016 22:22:55 GMT