Make report public in Odoo - report

I successfully created a simple report.
<report
id="my_report"
model="cars.car"
string="Car"
report_type="qweb-pdf"
name="cars.my_report"
file="views.xml"
attachment_use="True"
attachment="('CAR'+(object.name or '').replace('/','')+'.pdf')"
/>
The problem is that I can only access it if I'm logged in to Odoo backend. How do I make a report public? I tried with parameter groups="base.group_no_one", but no success. Same for 'base.group_public'.
I found a guy with the exact same question here: https://www.odoo.com/forum/help-1/question/allow-website-guests-to-download-certain-reports-105042
...but sadly Odoo forum has been dead for some time now. Nobody answered.

I didn't find an answer to this, so I've hacked it?
In the 'report' module, under controllers there is main.py file. I changed the auth parameter on line 24 to:
auth="public"
Nasty solution, probably not secure at all, but works for me.. for now, as I didn't find anything better.

Related

Airflow webserver redirects to nowhere

I'm trying to test a DAG I wrote in Astronomer/Airflow but I'm getting a really peculiar behavior that has me totally stuck.
Airflow's webserver comes up, and then after login as admin it redirects to http://localhost:8080/home which doesn’t appear to exist.
The specific error I get in the browser is ‘too many redirects’. I’m sure something is wrong in my configuration, but it’s not obvious (to me) what. Can you suggest steps for further diagnosis?
Thanks,
Keith
I thought I would share the resolution of this problem in case anyone else encounters it.
This problem came about while developing a DAG to test a part of our pipeline. The repo I was working with used a Dockerfile which was designed for automated testing and was not suitable for a DAG. Once I reverted to the stock Dockerfile the problem went away and I can now load localhost:8080/home just fine.
I have had similar issues when the username or the password is incorrect. I am expecting you are either entering wrong login credentials or your configuration is checking some external authentication server and it is not configured correctly.

New website won't load with error message HTTP 500.0 and urlscan failed

I am getting following error on a new website created on IIS. I am able to see URL Rewrite deployed on this IIS instance. But the new website is not configured to use it. Please find the screen shot of the error message also attached. I searched across numerous forums and no find. I vaguely remember somehow fixed this issue previously, may be 1 year back or so . Since there is no log of the solution traced anywhere, I am in the same bad situation once gain. Please help me if anybody solved this kind of problem.
Thanks in advance
Praveen
Finally I was able to make out what is going wrong. IIS is adding dependency on URLScan by default when a new website is created, but not sure why. I was able to see this in ISAPI Filters (Please refer attached screen shot). Everything worked fine once I removed URLScan from ISAPI filters.

How does Spring work with apparently no code?

I am trying to understand the example described here.
What is puzzling to me is that there is apparently no code. I run the spring-security-samples-insecuremvc-3.2.x within Tomcat and a form is presented to interact with but there is no Java code whatsoever as far as I can see. I can't even find the form. I realize that the code must be in one of the dependencies but I am baffled at how this all works.
Spring does generate/provide a default login form if it's configured to do form-based login and no custom login form is configured.
Sidenote: how to create and configure a custom login form is, for example, explained here: http://docs.spring.io/spring-security/site/docs/3.2.x/guides/form.html (to long to be copy/pasted here).
I have been looking at this sample today with the same questions as you - where the heck is the source? I finally found the answer I think you're looking for. Take a look at the pom.xml and in the dependencies you'll see spring-security-samples-messages-jc. Assuming you downloaded all the samples, import that project into STS and you'll find the files you're looking for.
BTW, I've been following the instructions on the spring security website to add security to this sample and I have not yet been able to get it to work - the login screen does not appear. Let me know if you have better luck than me.
The default spring security login form is generated by the class org.springframework.security.web.ui.DefaultLoginPageGeneratingFilter which is in spring-security-web-$version.jar
The method is generateLoginPageHtml()

is there a way to dowload netflix catalog?

http://api-public.netflix.com/catalog/titles/streaming
doesnt work anymore (it says inactive account). Is there a way to download full catalog? wanted to create app for my use.
Netflix shut down their developer program last year, which was the only way to get the proper credentials to sign a REST request URL and download the catalog... They are not going to be issuing any new developer keys, either. So, if you don't already have one, I am afraid you are out of luck.
If it is saying "account inactive" you are not authenticating your call--you cannot just paste that into a browser. There is a lot of information on the Netflix developer site about this here http://developer.netflix.com/page
I have the same question. I'm able to begin downloading the entire catalog, but due to the size it crashes my browser.
I started reading through this link (http://developer.netflix.com/forum/read/157154) but to be honest I don't really understand it.
Anyone care to enlighten me on how to set up a request, add Accept-Encoding headers, and then parse the output? Sorry for thread highjack...
Having the same issue, 401 for what used to work fine. Seems to be a Netflix issue, not sure what we can do.

ScriptResource.axd was not found

A couple weeks ago I made a change and added some javascript to one of my aspx pages and it worked for me until I released the file to the network, now it works on the live server, but not on my localhost server that it makes when I build the site.. if I cannot find a fix, I am going to just take out the javascript, since in my reading I have found that ScriptResource.axd has something to do with handling javascript.
But I would really like to save that as the last possibility
any help is appreciated.
Thanks
There are a few web forms you can visit that discuss this issue, that are still current, and from my experiance removing the javascript won't just simply fix the problem, something has gotten messed up possibly in your web.config file. If not that find out which pages this error is specific to and try re working the code a little.
Hope I can offer some help
http://web.archive.org/web/20120210224523/http://csharpquestions.com/asp-net/when-scriptresource-axd-suddenly-404s
-that one is the one i found to be somewhat helpful.

Resources