Hidden folder in Jasper repository - jasper-reports

On creating a report via iReports, called "Test", iReports will create a hidden folder in the repo called "Test_files".
You can see these folders through the database in the table jiresourcefolder, because it has a column called hidden.
id | version | uri | hidden | name | label | description | parent_folder | ...
You cannot access the folders through the default GUI, nor through anything else but the database and the webservice, if you explicitly request the ResourceDescriptor of the folder.
Now my question: Is there any option or property (inside the resource descriptor) that can bet set to hide or unhide a folder or even other resources?

Related

Github: Download artifact from any repository's Github actions workflow

I am trying to find a place to upload a binary that has to be executed in all the workflows that we run.
The problem that I am having is finding such a place.
I tried uploading the binary as a release. I am able to download this binary via the REST API but I have to pass in a personal access token to do so.
Is there a way to download a release artifact without passing in a personal access token on an internal repository that is visible to all the users in the organization?
-----------
| |
| bin.exe |
| |
-----------
/ | \
/ | \
----------- ------------ ------------
| | | | | |
| Repo 1 | | Repo 2 | | Repo 3 |
| | | | | |
----------- ------------ ------------
We have hundreds of repos and we want to pull the release artifact that is hosted in a different repo without passing in a personal access token because adding a personal access token is not feasible on hundreds of repos. We also do not want to host the binary publicly.
If you have been in a similar situation, please let me know on how you resolved it.
because adding a personal access token is not feasible on hundreds of repos
That means using one key (a deploy key, associated to the unique repository with the binary, instead of a PAT associated to a user) in order to access said binary.
Using gh secret set, you can add that key to hundred of repository through a script.
Then a common GitHub action can reference that secret when executed in each repository.

Get VSCode to format differently by subfolder

I have a project structure like this
+-project
+-.clang-format
+-.git
+-.gitattributes
+-.vscode/settings.json
+-src
| +-somefileA.cpp
| +-someFileB.cpp
+-third_party
+-ffmpeg
| +-.clang-format
| +-.vscode/settings.json
| +-src
| +-.git
| +-.gitattributes
| +-src
| +-ffmpeg.c
+-zlib
+-.clang-format
+-.vscode/settings.json
+-src
+-.git
+-.gitattributes
+-src
+-zlib.c
I need ffmpeg.c and zlip.c and someFileA.cpp to all be formatted differently when viewing in VSCode. Some use tabs of 4, some use tabs of 8, some don't use tabs but indent by 2, some have an 80 column line limit, some have 100 column line limit, etc..
Is there a way to get VSCode to format these differently in the same instance of VSCode ?
I see I can add multiple "root" folders to a "workspace" in VSCode but:
(a) these aren't "root" folders, they're subfolders
(b) I'm not using workspaces, yet another file that is unrelated to my project that would have to get synced.
(c) ideally I wouldn't have to have to manually add more folders as more third party libraries are added. They're sub folders of a bigger project so ideally it would just work.
The same way .clang-format and .gitattributes work by covering the subtree they're in, I tried putting a .vscode/settings.json with different settings but no luck.
Are there other solutions?

How Jasperreports Server stores report output internally?

There are few ways to store report output in JR Server: FS, FTP and Repository. The repository output is the default one. I guess the files in the repository must be stored in the DB or file system. Are the files kept forever? How can I manage the repository and for example set a file's lifetime?
The repository outputs are stored in the database. Usually there is no need to set the lifetime.
As of JasperReports Server v 6.3.0 the reference to all resources is kept in jiresource table, while content of is kept in jiresource.
In my case I was able to retrieve all output reports with:
select r.id,r.name,r.creation_date
from jiresource r, jicontentresource c
where r.id = c.id;
The definition of jicontentresource is
jasperserver=# \d+ jicontentresource
id | bigint | not null | plain | |
data | bytea | | extended | |
file_type | character varying(20) | | extended | |

move a Folder in Pentaho

I am new to Pentaho and I am trying using REST API to change a folder path with all his content, to move a folder from a location to an other location
Example
We have this structure
mainFolder
|
- subFolder1
|
- subFolder2
|
-subSubFolder
And after a rest call I am trying to have this structure:
mainFolder
|
-subFolder1
|
- subFolder2
|
- subSubFolder
The folder "subSubFolder" is on the same level as subFolder1 and subFolder2.
Can anyone help me how I can do this with REST API calls ? I am still searching for the REST URL to delete a folder and for moving a folder I found nothing.
Thank you,
Adi

How to find out what profile was used for building *.ipa file?

Is it possible and how to grab that information about profile just from existing *.ipa file?
I can give you a direction in this, not sure if it'll actually help:
Change the extension of the *.ipa file to *.zip.
Un-archive this zip file.
The folder contains a *.app file. Open its package contents by right clicking it.
Inside, you'll find an embedded.mobileprovision file.
EDIT- Since Xcode 6 doesn't show the provisioning profile, I'll extend the answer to still see the details:
Change the extension of the embedded.mobileprovision to embedded.txt or just open it with any text editor of choice.
Inside, you'll find some binary data and a hash that contains the profile's details like Entitlements, CreationDate, ExpirationDate, Name, etc which will be sufficient to conclusively lead you to the provisioning profile used to create the .ipa.
Hope it'll help!
Use Nomad.
$ ipa info /path/to/app.ipa
+-----------------------------+----------------------------------------------------------+
| ApplicationIdentifierPrefix | DJ73OPSO53 |
| CreationDate | 2014-03-26T02:53:00+00:00 |
| Entitlements | application-identifier: DJ73OPSO53.com.nomad.shenzhen |
| | aps-environment: production |
| | get-task-allow: false |
| | keychain-access-groups: ["DJ73OPSO53.*"] |
| CreationDate | 2017-03-26T02:53:00+00:00 |
| Name | Shenzhen |
| TeamIdentifier | S6ZYP4L6TY |
| TimeToLive | 172 |
| UUID | P7602NR3-4D34-441N-B6C9-R79395PN1OO3 |
| Version | 1 |
+-----------------------------+----------------------------------------------------------+
Something like the following dumps an xml version of the provisioning profile:
unzip -p <ipafile>.ipa Payload/<myapp>.app/embedded.mobileprovision | security cms -D
Replace <ipafile> and <myapp> accordingly. If you don't know what <myapp> should be, try:
unzip -l <ipafile>.ipa | grep mobileprovision
Below are step for getting profile details from an IPA file :
Change the extension of IPA to ZIP. This will prompt an alert whether to keep .ipa or use.zip. Go with Use .zip option
This will convert IPA to ZIP file
Extract the ZIP file by double click on it
This will create a folder with contents : Payload, SwiftSupport and Symbols
Goto Payload -> App file
Right click and ‘Show Package Contents’ for App file
This will show detailed content such as codeSign, localised file, framework, provision files etc of your app file
You can see provision profile details in embedded.mobileprovision. This file can be read only in txt file format. So add an extension .txt to file
Now open this file using textEdit. Now thoroughly go through this file you can see provision profiles for the IPA.
Go to your Xcode organizer and click on the archives.You can see the list of archives you have made. Clicking on it will show you the details like date of creation, identifier etc. You can find the profile you created for this by matching this identifier you got.