Re: bad secure links

2014-08-26 Thread Chris Mylonas
Hey John,

What I've done when moving from 5.3.7 -> 5.4 is remove the tapestry5-jquery
pom dependency and put this into AppModule

configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER,
"jquery");

Does me fine, but I don't do much jquery-ing.



On Mon, Aug 25, 2014 at 10:16 PM, John  wrote:

> Hi,
>
> Yes I am using 5.3.7.
>
> I added this code as suggested...
>
>   public void
> contributeMetaDataLocator(MappedConfiguration configuration)
>   {
>   configuration.add(MetaDataConstants.SECURE_PAGE, "true");
>   }
>
>
> The above seems to break my eventlinks in production mode (ok in dev
> mode), probably a js problem?
>
> Maybe time to look at 5.4, but I am using Tapestry5-jquery and that
> doesn't work with 5.4!
>
> John
>   - Original Message -
>   From: Thiago H de Paula Figueiredo
>   To: Tapestry users
>   Sent: Monday, August 25, 2014 12:27 AM
>   Subject: Re: bad secure links
>
>
>   On Sun, 24 Aug 2014 19:31:34 -0300, John  wrote:
>
>   > I started running my app in production mode but I get these bad links
>   > (the yui compressor throwing exceptions too)
>   >
>   >> href="
> http://bespokebookings.com:443/book/ad/JohnDoe?t:state:client=hrDi7mYAc4b+9Eu47WlbXwHGNlY=:H4sIAD1MrU4DQRAe2h6U4DC8AHqrUJUEkks3hKRPMLkblm32ZpbZ4WgNFsmL8EJoNA6FYs9gvnz/H9/QvCwAYFYUNqLBYcbukZxhpmJ6uHKRjZQxuUI6xo6Ku06R2O5JSyxW2W2k1G9NFAO1Q06XGzp8/ly8n3z9vs1g7uGskyEL12rbG5z7HY64SshhtTWNHNYeTh+mkzsc6Ale4cjDMte3f73PBs0YNNb9MkmHFoWr1XJPe4NjL9wLl6kLE8wNFqiEE29qfvOskukPTKcHSe4=
> ">John
>   > Doe
>   >
>   > I've recall seeing this sometime before, I think Tapetsry is trying to
>   > force links to be secure but it gets the protocol wrong, no need for
> the
>   > oort number either!?
>   >
>   > What is the fix please?
>
>   What's the Tapestry version please? :) I guess it isn't 5.4, as you're
>   using tapestry-yuicompressor, which is deprecated in 5.4 due to too much
>   bugs.
>
>   Anyway, you can customize the handling of secure and non-secure links by
>   overriding, decorating or advising the BaseURLSource service. Looking at
>   the default implementation in 5.4, I cannot see it getting the HTTPS port
>   wrong.
>
>   --
>   Thiago H. de Paula Figueiredo
>   Tapestry, Java and Hibernate consultant and developer
>   http://machina.com.br
>
>   -
>   To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>   For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
> ---
> This email is free from viruses and malware because avast! Antivirus
> protection is active.
> http://www.avast.com
>


Re: bad secure links

2014-08-25 Thread Alejandro Scandroli
Hey John

Do you have SymbolConstants.HOSTPORT and
SymbolConstants.HOSTPORT_SECURE properly set?
If not, configure them and try again. I think this could be a
manifestation of TAP5-1973.

https://issues.apache.org/jira/browse/TAP5-1973

Cheers.
Alejandro.


On Mon, Aug 25, 2014 at 2:16 PM, John  wrote:
> Hi,
>
> Yes I am using 5.3.7.
>
> I added this code as suggested...
>
>   public void 
> contributeMetaDataLocator(MappedConfiguration configuration)
>   {
>   configuration.add(MetaDataConstants.SECURE_PAGE, "true");
>   }
>
>
> The above seems to break my eventlinks in production mode (ok in dev mode), 
> probably a js problem?
>
> Maybe time to look at 5.4, but I am using Tapestry5-jquery and that doesn't 
> work with 5.4!
>
> John
>   - Original Message -
>   From: Thiago H de Paula Figueiredo
>   To: Tapestry users
>   Sent: Monday, August 25, 2014 12:27 AM
>   Subject: Re: bad secure links
>
>
>   On Sun, 24 Aug 2014 19:31:34 -0300, John  wrote:
>
>   > I started running my app in production mode but I get these bad links
>   > (the yui compressor throwing exceptions too)
>   >
>   >> 
> href="http://bespokebookings.com:443/book/ad/JohnDoe?t:state:client=hrDi7mYAc4b+9Eu47WlbXwHGNlY=:H4sIAD1MrU4DQRAe2h6U4DC8AHqrUJUEkks3hKRPMLkblm32ZpbZ4WgNFsmL8EJoNA6FYs9gvnz/H9/QvCwAYFYUNqLBYcbukZxhpmJ6uHKRjZQxuUI6xo6Ku06R2O5JSyxW2W2k1G9NFAO1Q06XGzp8/ly8n3z9vs1g7uGskyEL12rbG5z7HY64SshhtTWNHNYeTh+mkzsc6Ale4cjDMte3f73PBs0YNNb9MkmHFoWr1XJPe4NjL9wLl6kLE8wNFqiEE29qfvOskukPTKcHSe4=";>John
>   > Doe
>   >
>   > I've recall seeing this sometime before, I think Tapetsry is trying to
>   > force links to be secure but it gets the protocol wrong, no need for the
>   > oort number either!?
>   >
>   > What is the fix please?
>
>   What's the Tapestry version please? :) I guess it isn't 5.4, as you're
>   using tapestry-yuicompressor, which is deprecated in 5.4 due to too much
>   bugs.
>
>   Anyway, you can customize the handling of secure and non-secure links by
>   overriding, decorating or advising the BaseURLSource service. Looking at
>   the default implementation in 5.4, I cannot see it getting the HTTPS port
>   wrong.
>
>   --
>   Thiago H. de Paula Figueiredo
>   Tapestry, Java and Hibernate consultant and developer
>   http://machina.com.br
>
>   -
>   To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>   For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
> ---
> This email is free from viruses and malware because avast! Antivirus 
> protection is active.
> http://www.avast.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: bad secure links

2014-08-25 Thread John
Hi,

Yes I am using 5.3.7.

I added this code as suggested...

  public void contributeMetaDataLocator(MappedConfiguration 
configuration)
  {
  configuration.add(MetaDataConstants.SECURE_PAGE, "true");
  }


The above seems to break my eventlinks in production mode (ok in dev mode), 
probably a js problem?

Maybe time to look at 5.4, but I am using Tapestry5-jquery and that doesn't 
work with 5.4!

John
  - Original Message -
  From: Thiago H de Paula Figueiredo
  To: Tapestry users
  Sent: Monday, August 25, 2014 12:27 AM
  Subject: Re: bad secure links


  On Sun, 24 Aug 2014 19:31:34 -0300, John  wrote:

  > I started running my app in production mode but I get these bad links  
  > (the yui compressor throwing exceptions too)
  >
  >  
href="http://bespokebookings.com:443/book/ad/JohnDoe?t:state:client=hrDi7mYAc4b+9Eu47WlbXwHGNlY=:H4sIAD1MrU4DQRAe2h6U4DC8AHqrUJUEkks3hKRPMLkblm32ZpbZ4WgNFsmL8EJoNA6FYs9gvnz/H9/QvCwAYFYUNqLBYcbukZxhpmJ6uHKRjZQxuUI6xo6Ku06R2O5JSyxW2W2k1G9NFAO1Q06XGzp8/ly8n3z9vs1g7uGskyEL12rbG5z7HY64SshhtTWNHNYeTh+mkzsc6Ale4cjDMte3f73PBs0YNNb9MkmHFoWr1XJPe4NjL9wLl6kLE8wNFqiEE29qfvOskukPTKcHSe4=";>John
  > Doe
  >
  > I've recall seeing this sometime before, I think Tapetsry is trying to 
  > force links to be secure but it gets the protocol wrong, no need for the
  > oort number either!?
  >
  > What is the fix please?

  What's the Tapestry version please? :) I guess it isn't 5.4, as you're
  using tapestry-yuicompressor, which is deprecated in 5.4 due to too much 
  bugs.

  Anyway, you can customize the handling of secure and non-secure links by 
  overriding, decorating or advising the BaseURLSource service. Looking at 
  the default implementation in 5.4, I cannot see it getting the HTTPS port
  wrong.

  --
  Thiago H. de Paula Figueiredo
  Tapestry, Java and Hibernate consultant and developer
  http://machina.com.br

  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


Re: bad secure links

2014-08-24 Thread Thiago H de Paula Figueiredo

On Sun, 24 Aug 2014 19:31:34 -0300, John  wrote:

I started running my app in production mode but I get these bad links  
(the yui compressor throwing exceptions too)


href="http://bespokebookings.com:443/book/ad/JohnDoe?t:state:client=hrDi7mYAc4b+9Eu47WlbXwHGNlY=:H4sIAD1MrU4DQRAe2h6U4DC8AHqrUJUEkks3hKRPMLkblm32ZpbZ4WgNFsmL8EJoNA6FYs9gvnz/H9/QvCwAYFYUNqLBYcbukZxhpmJ6uHKRjZQxuUI6xo6Ku06R2O5JSyxW2W2k1G9NFAO1Q06XGzp8/ly8n3z9vs1g7uGskyEL12rbG5z7HY64SshhtTWNHNYeTh+mkzsc6Ale4cjDMte3f73PBs0YNNb9MkmHFoWr1XJPe4NjL9wLl6kLE8wNFqiEE29qfvOskukPTKcHSe4=";>John  
Doe


I've recall seeing this sometime before, I think Tapetsry is trying to  
force links to be secure but it gets the protocol wrong, no need for the  
oort number either!?


What is the fix please?


What's the Tapestry version please? :) I guess it isn't 5.4, as you're  
using tapestry-yuicompressor, which is deprecated in 5.4 due to too much  
bugs.


Anyway, you can customize the handling of secure and non-secure links by  
overriding, decorating or advising the BaseURLSource service. Looking at  
the default implementation in 5.4, I cannot see it getting the HTTPS port  
wrong.


--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org