Comments (5)
Hi, @ankpshah,
we have finally understood why uploads fail for some files such as ko.log: it's actually because of the configuration of the waf (Web Application Firewall), which considers that these files present a potential security risk.
The waf therefore blocks the upload but returns a 200 response, which explains why the upload is considered finalised in your code.
I can therefore close this issue.
Thank you.
from aws-sdk-android.
Hello thank you for creating this issue. Someone from our team will take look at this issue.
from aws-sdk-android.
I believe this may be related to the specific contents of a file being uploaded. To help narrow down the potential cause of the issue, would it be possible for you to verify the integrity of the file contents? Here are a few steps that could help us diagnose the issue further:
Manual Upload Test: Could you attempt to manually upload the file using the S3 console? This can help us determine if the issue lies with the file itself or the way the SDK is handling the upload.
File Integrity Check: Before uploading, could we perform a checksum comparison (e.g., using MD5) of the file on the client side and then again after uploading (if possible) to ensure the file has not been corrupted during the process?
SDK Configuration: Please let me know if there are any specific SDK configurations or settings that I should double-check on my end that might affect the upload process.
from aws-sdk-android.
Hello @salva116ario,
- If the file is not private could you share that so we are able to replicate the issue.
- What is the content type of the FAIL_CONTENT file? is it any different from CONTENT_OK file?
- Whats the difference between contents of CONTENT_OK and FAIL_CONTENT file?
from aws-sdk-android.
Hi, @ankpshah
thank you for considering my request.
One way to reproduce my problem is, by example, to use these two files :
ko.log (... a file for which upload task fails)
ok.log (... with this file, all it's OK !)
I can uplaod ok.log from my Android mobile app to my s3 bucket using your lib (so, upload from mobile device storage to s3 bucket)
And I can uplaod ok.log from my PC (Windows) to my s3 bucket using WinSCP (so, from my PC storage to s3 bucket...)
But, with ko.log, the upload fails using both WinSCP (throws Internal Error) and from mobile app (but no error thrown).
It's tricky but it seems there is something wrong with this line in ko.log :
at java.lang.Thread.run(Thread.java:764)
Now, note that the same ko.log file can be uploaded on another bucket from a SpringBoot app.
So, if there is a problem with the content file, it seems that it happens only in some cases and then, we're currently trying to check our bucket configuration...
And, at last, i precise that if ko.log file is zipped before the upload, it works fine...
I'll keep you posted on the progress of our research as soon as possible.
from aws-sdk-android.
Related Issues (20)
- Non-fatal Exception: com.amazonaws.AmazonClientException: Unable to execute HTTP request: timeout HOT 5
- Response timeout issues in the AWS SDK for Android HOT 20
- [Question&Help] Why receive DefaultDataset: Synchronize failed because it exceeded the maximum retries HOT 5
- Analytics SDK - Android - InitializationException in amazonmobileanalytics. Encountered an error accessing the file system HOT 2
- How to upload to s3 with endpoint URL HOT 2
- Android 14: Cognito Hosted UI auth redirect response fails to reopen app after successful login. HOT 11
- TransferNetworkConnectionType.MOBILE doesn't work when WiFi is connected on "no internet" network (API 25) HOT 1
- Resend MFA Code HOT 2
- Kinesis Video sending a video from External source HOT 4
- You must be signed-in with Cognito Userpools to be able to use getTokens HOT 8
- Consumer proguard rules are too broad HOT 1
- My Device cannot get get/accepted or update/accepted, but same account in other devices is OK. HOT 1
- Pinpoint Analytics causes crash - SQLiteReadOnlyDatabaseException: attempt to write a readonly database HOT 7
- Should I expose Identity pool ID in my android app's source code? HOT 3
- Session issue : No cached session HOT 12
- Crash: java.lang.SecurityException Package android does not belong to 10347 HOT 3
- aws-translate - Need TranslateText function text field accept array HOT 1
- TransferWorkerObserver$attachObserverForPendingTransfer$1.invokeSuspend (API 25)
- Play mp4 file using aws kinesis HOT 3
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 aws-sdk-android.