Comments (10)
@yanokwa I think waiting for the fix to be ported to Java 6/7/8 will be preferable. Meanwhile I will look for another issue to work on.
from briefcase.
Comment by mitchellsundt
Thursday Jul 09, 2015 at 19:01 GMT
Needs a full ODK team discussion to decide.
Reported by wbrunette
on 2012-08-22 05:02:48
- Labels added: Type-Enhancement, Briefcase, Collect
- Labels removed: Type-Defect
from briefcase.
I believe that as of Java 9, unlimited strength JCE policy files are no longer needed. There is sample code here: https://stackoverflow.com/a/39872144/152938
And it looks like the change has been backported to Java 6, 7, and 8 at https://bugs.openjdk.java.net/browse/JDK-8170157
If this is indeed the case, then fixing this issue could be as simple as added the following line of code: Security.setProperty("crypto.policy", "unlimited");
But I could be wrong! So follow the links above and confirm. If you agree, then implement the change and to help test your change, I have an encrypted form at https://nafundi-test.appspot.com. Use your copy of Briefcase to connect to it using test/test as username/password. Export and use the following private_key.txt.
Try the export on these cases:
- Without the JCE (it should fail)
- With the JCE (it should work)
- With the above code and with the JCE (it should work)
- With the above code and without the JCE (it should work)
from briefcase.
@jpknox If you are looking for another contribution to Briefcase, this might be a good one. Comment below @opendatakit-bot claim
to claim it.
from briefcase.
After further examination, it looks like the backporting has not been finished. See the activity here:
- Java 6: https://bugs.openjdk.java.net/browse/JDK-8174748
- Java 7: https://bugs.openjdk.java.net/browse/JDK-8174747
- Java 8: https://bugs.openjdk.java.net/browse/JDK-8174746
from briefcase.
@yanokwa i would like to work on this, as it would easily get me started with the changes made so far. Cheers
from briefcase.
Long time no see, @icemc! Welcome back.
I should have been clearer with my comment. Because the backporting of unlimited JCE to Java 6/7/8 has not finished, I don't think there is a straightforward fix.
And unless you can think of a straightforward fix, I think we should wait a few months and let the Java community backport the Java 9 changes to Java 6/7/8.
from briefcase.
Update - the fix has been ported to Java 6/7/8 as is evident if you follow the links above.
But I recently tried to decrypt an encrypted form on Java 8 and it had the same issue mentioned above.
But according to @yanokwa ,
fixing this issue could be as simple as added the following line of code: Security.setProperty("crypto.policy", "unlimited");
Am I right?
from briefcase.
I can confirm that with Java 1.8.0_161 there no need to install the JCE
from briefcase.
Confirmed as well with Java 1.8.0_162 on macOS and Windows!
from briefcase.
Related Issues (20)
- Crash on export when submission is empty HOT 1
- Crash on reloading from Central server not right after configuring it HOT 1
- Crash on attempted cancel of pull from Central server when offline
- Socket closed when pushing 3k+ submissions to Central HOT 3
- Forms with external secondary instances aren't shown on export or push tabs HOT 1
- Crash when pulling forms with spaces in formId from Central
- Pull before export doesn't work for forms from Central
- Pull from Collect directory where a few versions of the same form are available is not possible HOT 1
- On pull from Central, submission attachments are not requested if submission folder exists
- Forms arenβt immediately showing up in push or export after a canceled pull - only with Java 8
- Export is crashing after canceling pull when empty submissions are created - Java 8
- Make documentation link in Central push warning dialog clickable
- Support empty form versions when doing multi-version push to Central
- Form selection is lost and status is missing on Export tab when pull before export process in progress
- Briefcase tabs are disabled when run on java 9 and 10 and select sd on Windows
- Pull/Push/Export tabs are still active when the storage location is cleared HOT 3
- On export, skip encrypted submissions with manifest but no .enc file and mark as failed
- Form selection and individual export configuration in export tab becomes disabled
- Export using CLI ok, but freezes / hangs using GUI (Key too long?)
- Export of encrypted submissions using Briefcase UI fails HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from briefcase.