-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When i Upload image/video from IOS Azure Access level change from Blob to Private #49
Comments
Hi @priyankabhanderi9 one question. I have RN project with same versions of react, react-native and react-native-azure-blob-storage as you. But when I try to start project I get this error "Plugin with id 'maven' not found." While searching on web, I've seen some answers saying that maven is deprecated since gradle 7 and react-native 0.68 has gradle version 7. So question is have you run across this error? |
It would be easier for you to fork the repo and upgrade the native modules
to use gradle 7
…On Fri, Jul 1, 2022 at 10:08 AM RobertPetricevic ***@***.***> wrote:
Hi @priyankabhanderi9 <https://github.com/priyankabhanderi9> one
question. I have RN project with same versions of react, react-native and
react-native-azure-blob-storage as you. But when I try to start project I
get this error "Plugin with id 'maven' not found." While searching on web,
I've seen some answers saying that since gradle 7 and react-native 0.68 has
gradle version 7. So question is have ru across this error?
—
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHT3QHB77TL34EPN54DGS3TVR4QXTANCNFSM5ZE3DYFQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: <Elijah23Johnson/react-native-azure-blob-storage/issues/49/1172551589@
github.com>
--
Elijah Johnson
Founder, CLOTHSSTER
*https://clothsster.com/ <https://clothsster.com/>*
|
Update maven with "maven-publish" like this |
If you're not using SAS, you could use the function To do so remove the if/else condition and replace it with |
Hi @priyankabhanderi9 me again. I've upgraded my project to 0.68 RN version. After implementing your fix from above (apply plugin: 'maven-plugin'), I've run into new error: Could not find method mavenDeployer() for arguments [build_81lt8pd1gauvvm48fltx8p3i6$_run_closure4$_closure15$_closure17@7604fa08] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler. Do you have any idea :) |
Hello @Elijah23Johnson i am getting the same issue with this library when SAS is false it will provide an old expired SAS in url and also auto update the permissions on azure side from public to private . |
Hi there
I'm not going to lie... if you pass SAS false then it doesn't pass the
token at all. At the time of implementation it was SASS or something else.
I can't quit remember. But if you give me some more details on what your
trying to do then maybe I can help you.. Also if you look at the
implementation it's fairly simple and you might be able to implement
without my library and just do your own thing.
…On Thu, Mar 14, 2024, 10:49 PM Malik Soban ***@***.***> wrote:
Hello @Elijah23Johnson <https://github.com/Elijah23Johnson> i am getting
the same issue with this library when SAS is false it will provide an old
expired SAS in url and also auto update the permissions on azure side from
public to private .
But when i make SAS true in configure section it doesn't pass any token
what is whe way to pas the SAS using react-native please guide ASAP
—
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHT3QHFDFZBKCTLWCDM4VMLYYJVS5AVCNFSM5ZE3DYF2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJZHA4DQOBQGAYA>
.
You are receiving this because you were mentioned.Message ID:
<Elijah23Johnson/react-native-azure-blob-storage/issues/49/1998888000@
github.com>
|
@Elijah23Johnson Thankyou for your quick response, Let me provide you some more details what issue i am having. When the SAS is true then the Response for the uploaded image will be the below —— >>> "image" : "Rn2UXkCgDtMd6M0R0gzURSrQVyf1_03-15-2024_LEFT_FACING_21921933607.jpeg" When the SAS is false then it will provide a response that is given below but the token after ? I dont know from where it is being picked. the above is my upload code ... or second solution when i make SAS as false it changes the Azure storage access permissions from public to private whenever i upload the image please i already integrated your library and its now an issue that i am facing in my PRODUCTION envirnoment and its an P1 i am facing at the moment kindly help me out in that "react-native-azure-blob-storage": "^2.0.3" this is the library version i am using . |
Okay the SAS token is only used for authentication. The thing that is
returned
Rn2UXkCgDtMd6M0R0gzURSrQVyf1_03-15-2024_LEFT_FACING_21921933607.jpeg
Is the file name and you should see that in your azure blob. To access the
image append that to the end of the container domain and blob route.
You can make your container public and that will open access to the image
publicly.
Other wise it looks like someone may have merged some hard coded stuff in
the repo... as this looks like someone else's blob so I'm also not sure why
your getting that. The only thing I can think is I approved a pr or patch
or something where someone added that
https://cmpndblobstorage.blob.core.windows.net/cmpndmobile/Rn2UXkCgDtMd6M0R0gzURSrQVyf1_03-15-2024_NONE_2689678198747.jpeg?sig=cvByX%2B7zS%2Bo%2BhKlf%2FzvbVipulbjtl1%2Far%2BkrgJf%2F3fQ%3D&si=readwrite&sv=2015-04-05&sr=c%E2%80%9D
…On Thu, Mar 14, 2024, 11:56 PM Malik Soban ***@***.***> wrote:
@Elijah23Johnson <https://github.com/Elijah23Johnson> Thankyou for your
quick response, Let me provide you some more details what issue i am having.
true-SAS.png (view on web)
<https://github.com/Elijah23Johnson/react-native-azure-blob-storage/assets/32664903/51e33328-9406-4fed-830d-0654a697619f>
When the SAS is true then the Response for the uploaded image will be the
below —— >>>
"image" :
"Rn2UXkCgDtMd6M0R0gzURSrQVyf1_03-15-2024_LEFT_FACING_21921933607.jpeg"
false-SAS.png (view on web)
<https://github.com/Elijah23Johnson/react-native-azure-blob-storage/assets/32664903/c347a92d-96d8-46cb-8a30-eddc9c6c53e9>
When the SAS is false then it will provide a response that is given below
but the token after ? I dont know from where it is being picked.
image : “
https://cmpndblobstorage.blob.core.windows.net/cmpndmobile/Rn2UXkCgDtMd6M0R0gzURSrQVyf1_03-15-2024_NONE_2689678198747.jpeg?sig=cvByX%2B7zS%2Bo%2BhKlf%2FzvbVipulbjtl1%2Far%2BkrgJf%2F3fQ%3D&si=readwrite&sv=2015-04-05&sr=c”
<https://cmpndblobstorage.blob.core.windows.net/cmpndmobile/Rn2UXkCgDtMd6M0R0gzURSrQVyf1_03-15-2024_NONE_2689678198747.jpeg?sig=cvByX%2B7zS%2Bo%2BhKlf%2FzvbVipulbjtl1%2Far%2BkrgJf%2F3fQ%3D&si=readwrite&sv=2015-04-05&sr=c%E2%80%9D>
Upload-code.png (view on web)
<https://github.com/Elijah23Johnson/react-native-azure-blob-storage/assets/32664903/9fa5c776-4efe-43fb-a095-a4e89c253781>
the above is my upload code ...
what i want is that to pass the SAS token let suppose "xyz" along with my
image when SAS is true.
or second solution when i make SAS as false it changes the Azure storage
access permissions from public to private whenever i upload the image
please i already integrated your library and its now an issue that i am
facing in my PRODUCTION envirnoment and its an P1 i am facing at the moment
kindly help me out in that
—
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHT3QHBU3DSJIB6GOVWUDV3YYJ5P5AVCNFSM5ZE3DYF2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJZHA4TGNJTGYZA>
.
You are receiving this because you were mentioned.Message ID:
<Elijah23Johnson/react-native-azure-blob-storage/issues/49/1998935362@
github.com>
|
I can't access the URL which is generated by Azure
Working fine in Android
"react": "17.0.2",
"react-native": "0.68.1",
"react-native-azure-blob-storage": "^2.0.3",
The text was updated successfully, but these errors were encountered: