Payam Fard

Ranch Hand
+ Follow
since Jan 31, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Payam Fard


0
down vote
favorite
I am trying to drag and drop 'Tea' on the following website:

https://gojs.net/latest/samples/htmlDragDrop.html?gclid=EAIaIQobChMI0NW75IXY1QIVmLjACh26RwtjEAAYASAAEgLIofD_BwE

Here is the code I have:



I have tried all of the following xpath's for target element, none of which seems to work. Any ideas as to what is wrong?

we are using Sikuli with Java (Sikuli 1.1.1), but we are running into java.lang.ThreadDeath exception for a new client. In Java Configuration, we have selected mix code of Enable - hide warning and run with protections. Has anyone run into this issue before and what is the reason and possible fix?
5 years ago
Also, what is the difference between //label[@for=...] and //label/@for=...?

Thanks.
Hi all, does anyone know what the following xPath does?

//select[not(//label/@for=./@id)]

Also, what does /@for means here?

Thanks.
Hi all,

I am wondering if someone can guide me to a tutorial or instructions on how I can configure an applet to get access to local resources such as file system, browser, etc.

I appreciate any help,
Payam
9 years ago
Unfortunately, the reason we are installing our software on premise is that there cannot be any connections established from the box our software is being installed on and outside world in or out due to our client's security requirements.

On the db front, the box that our software being installed on is not our box and we do not have controlled over it. The box is maintained by our client's system admins. Th DBA's of our client will not be maintaining the database of our software, but they may have access to the box. Essentially, our client has entire access to the OS, box, and network where we are installing our software. I was wondering if they can somehow get access to our database, schema, and data if they have full control of the box and the OS-level root access.
9 years ago
Thanks Ulf for your reply. What would be the next set of steps after ProGuard for extra security? We are more concerned about protecting our code than our database, but we already have the user rights setup the way you have recommended here.

Also, on the DB side, if they have root level access to the computers our database is being installed on, can they not get access to our PostgreSQL without having database admin rights?
9 years ago
Hi all,

We are in the process of installing our Java software (including our application database) on a third-party computers that are not owned by us. What would be the best way to protect our software to make it harder to decompile, etc. also make it harder to get access to our database with root password, etc. with a reasonable investment on our end?

Any thoughts would be appreciated.

Best,
Payam
9 years ago
Hi Everyone,

I am new to applets, and my manifest file is:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.3
Permissions: all-permissions
Created-By: 1.6.0-internal (Sun Microsystems Inc.)

Name: com/myPackage/test/client/TaskApplet.class
SHA1-Digest: pLmraui35IkgfAq+v3WGj1LwCYQ=

The error I get is as follows:

When the page is loaded I get the following error:
java.lang.SecurityException: class "com.myPackage.test.client.TaskApplet" does not match trust level of other classes in the same package

Would you please advise what I need to do to fix the above security exception?

Thanks,
Payam
9 years ago
Thanks for your reply. I have a web application. Right now, through a Swing application that gets downloaded via JNLP, my Swing application gets access to local desktop browsers. I want to phase out the Swing application, and I was wondering if through JNLP or some other mechanism my web application can somehow create a tunnel through which it can get access to local desktop resources without the need to keep Swing application in place.
Hi all,

I am looking for a Java framework (preferably opensource) that gives me access to desktop resources such as launching browsers, etc. I know that it can be done with Applets and JNLP/Webstart, but I do not want to develop a Swing application or an applet, and I am wondering if there is a framework that provides such tunneling capabilities.

I appreciate any responses/pointers.

Thanks.
We have a JNLP program that makes a REST call to the server during its operations. Without the JNLP we can add the JSESSIONID as a cookie to the REST call and things work just fine.
But when we make the REST call from the JNLP it adds another JSESSIONID as a cookie and so the original JSESSIONID won’t get picked up. The web application is protected by Spring Security and also all the JARs required for JNLP get’s downloaded correctly and JNLP launched just fine, only the REST call is impacted. We add the following for all jar downloads:

<jar href="lib/log4j-1.2.15.jar;JSESSIONID=<%= request.getSession().getId() %>" />

I would like to either avoid the extra JSESSIONID to add as a cookie or remove the extra JSESSIONID in a Servlet Filter.
Or any other help to resolve this issue would be greatly appreciate it.

Technology Stack:
Spring MVC, Hibernate, Spring Security, Tomcat
9 years ago
Hi all,

I have a jtable for which I would like to have filtering capabilities but disable sorting. Right now, I can filter the values shown in the table but user can also click on the table header to sort the values. How I can disable sorting while keeping the filtering?

Thanks.
10 years ago
I am very sorry for the repost, but does anyone know how this can be done or can point me to a code example?

Thanks,
Payam
12 years ago