[google-appengine] GAE Java 8: need urlfetch to communicate between modules

2019-04-16 Thread Bob Evans

Hi,

After a bunch of experimentation I had to revert to the urlfetch handler ( <
url-stream-handler>urlfetch) because calling our 
backends  failed with a 302 redirect error. With the urlfetch handler, it 
works.

This seems wrong. Please tell me how I should properly design this.

Current design (has been working for years):

Frontend module gets https request forwards it to a backend module using 
UrlConnection and the doNotFollowRedirects=false.
Backend module is marked in web.xml CONFIDENTIAL and locked to admin role. 
Also, it checks the header for X-Google-Inbound-Appid to match our project.

After upgrading, it stopped working and the backend module sends a 302 
redirect. 

If I add the  urlfetch to the 
frontend appengine-web.xml then it works again.

It looks like the native httpconnection in java 8 does not send the 
X-Google-Inbound-Appid header either.

Overall, how should one properly configure a backend module in the Java 8 
environment to receive frontend connections yet keep it inaccessible from 
external queries?

Thanks for any help.
Bob

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/077f9644-1308-48a2-a805-26007b2e966d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How to host images with direct link?

2019-04-16 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Rokas, 

You can make any object stored in Cloud Storage publicly accessible via its 
URL, by following the appropriate steps in the "Making Data Public" online 
document 

. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/fe0d8612-ad1b-486d-aac6-2e4e09664a3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] [Newbie Questions] Setting up and test a local php app before deploying in QCP

2019-04-16 Thread Terry Middleton
Hello GAE Developers,

I am wanting to develop a PHP app and deploy in the QCP.   I'm so close, 
yet I'm missing something because I'm not there yet.

Here's what I have done so far.


   - Downloaded the GCP SDK, PHP, App Engine, etc.  I've actually walked 
   through deploying an php application (and it worked).


However, I have absolutely no idea what I did.  I just followed the 
instructions.  Although, I have somewhat of an idea.  I'm not 100% in the 
dark. I now understand what roll QCP plays and what it takes to push an app 
to QCP.  

What I really want to do is create the app in PHP, test it locally, then 
push it out to QCP.

My questions are:


   - *What can I use to develop the PHP files locally, then test them?*
   - *Is it truly just creating the php files in a directory structure and 
   declaring the app in the yaml file?*
   - *How do I setup my local environment?  I followed the instructions on 
   this, yet I'm missing something because I don't see where I test it 
   locally.*



Any thoughts, directions, or insights would be so appreciated.  

Terry

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/16edfab1-dc86-4b3b-9212-0ecb45ff1ba6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] DevAppServerTest @Rule problem

2019-04-16 Thread Mariateresa Cava
 

Hi,

I am having an issue using jUnit tests and handling exceptions in Java.

I created my testClass with both the annotations 
@RunWith(DevAppServerTestRunner.class) and 
@DevAppServerTest(TestConfig.class) since I need to test a method that use 
some properties configured in my appengine-web.xml file.

The problem comes when, after declaring a jUnit @Rule to define an 
Exception I want to test, I ran the test and got an error saying "The Rule 
myExceptionName must implement MethodRule or TestRule". That's pretty 
strange since the exception I declared is of type Expectedexception, a 
jUnit class tha already implements TestRule.

I suspect this issue has something to do with my @RunWith and 
@DevAppServerTest annotation because using another class without these the 
Rule implementation works(solution I can't use since I need to read some 
properties from appengine-web.xml).

Did anyone encounter something similar or have a clue on how to deal with 
this? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0f494848-606d-41c3-b296-60f87779b2c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How to host images with direct link?

2019-04-16 Thread Rokas Ostasevičius
Hello,

I am brand now to google cloud.
Could you tell me please how ito host number of images on Google Clound and 
have a direct link to the image? e.g. *domain.com/image_name.jpg*

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9dce84a5-647f-4310-afa3-bcba068448f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] AppEngine Flexible: Docker Socket error

2019-04-16 Thread Dinçer Kavraal
Hi,

The flexible environment with python fails deployments with:

A  = rebooting.  
A  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the 
docker daemon running? 
A  == Container: f4abd95b5a76 logs == 
A  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the 
docker daemon running? 
A  == Container: 4d25d8922b14 logs == 
A  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the 
docker daemon running? 
A  == Container: 773de327326e logs == 
A  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the 
docker daemon running? 
A  == Container: 08d84cb1b67e logs == 
A  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the 
docker daemon running? 
A  == Container: 6ace4c6db434 logs == 
A  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the 
docker daemon running? 



Has anyone had issues like this before, please?

I have tried with:
readiness_check:
app_start_timeout_sec: 600
but still same.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/495698e3-a8c8-41e1-89d8-5c35e02252c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.