[jira] [Commented] (FOP-2889) Missing maven artifacts: jai-core and jai-codec

2020-05-27 Thread mt (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17117758#comment-17117758
 ] 

mt commented on FOP-2889:
-

I still have the same issue with version 2.5. Looking at the patch, this makes 
sense to me since compile was set, but from my understanding, 
this is the default anyway, so the patch didn't actually change anything.

> Missing maven artifacts: jai-core and jai-codec
> ---
>
> Key: FOP-2889
> URL: https://issues.apache.org/jira/browse/FOP-2889
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.4
>Reporter: Jörg Weske
>Assignee: Simon Steiner
>Priority: Major
> Fix For: 2.5
>
>
> +*Problem:*+ When trying to include FOP 2.4 in a Java Maven project, the 
> following artifacts cannot be found through maven-central:
> {noformat}
> 
>   javax.media
>   jai-core
>   1.1.3
> 
> 
>   com.sun.media
>   jai-codec
>   1.1.3
> {noformat}
> As a result, building the project is impossible.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FOP-2889) Missing maven artifacts: jai-core and jai-codec

2020-05-27 Thread Simon Steiner (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17117803#comment-17117803
 ] 

Simon Steiner commented on FOP-2889:


I've added a new change to try to resolve

> Missing maven artifacts: jai-core and jai-codec
> ---
>
> Key: FOP-2889
> URL: https://issues.apache.org/jira/browse/FOP-2889
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.4
>Reporter: Jörg Weske
>Assignee: Simon Steiner
>Priority: Major
> Fix For: trunk
>
>
> +*Problem:*+ When trying to include FOP 2.4 in a Java Maven project, the 
> following artifacts cannot be found through maven-central:
> {noformat}
> 
>   javax.media
>   jai-core
>   1.1.3
> 
> 
>   com.sun.media
>   jai-codec
>   1.1.3
> {noformat}
> As a result, building the project is impossible.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-2941) SVG container with stroke=black has an unexpected border

2020-05-27 Thread Simon Steiner (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner updated FOP-2941:
---
Description: 
fop simple.fo -ps out.ps

Output should match PDF output

> SVG container with stroke=black has an unexpected border
> 
>
> Key: FOP-2941
> URL: https://issues.apache.org/jira/browse/FOP-2941
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: trunk
>
> Attachments: Watermark.svg, simple.fo
>
>
> fop simple.fo -ps out.ps
> Output should match PDF output



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-2941) SVG container with stroke=black has an unexpected border

2020-05-27 Thread Simon Steiner (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner updated FOP-2941:
---
Attachment: simple.fo

> SVG container with stroke=black has an unexpected border
> 
>
> Key: FOP-2941
> URL: https://issues.apache.org/jira/browse/FOP-2941
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: trunk
>
> Attachments: Watermark.svg, simple.fo
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-2941) SVG container with stroke=black has an unexpected border

2020-05-27 Thread Simon Steiner (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner updated FOP-2941:
---
Fix Version/s: trunk

> SVG container with stroke=black has an unexpected border
> 
>
> Key: FOP-2941
> URL: https://issues.apache.org/jira/browse/FOP-2941
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: trunk
>
> Attachments: Watermark.svg, simple.fo
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-2941) SVG container with stroke=black has an unexpected border

2020-05-27 Thread Simon Steiner (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner updated FOP-2941:
---
Attachment: Watermark.svg

> SVG container with stroke=black has an unexpected border
> 
>
> Key: FOP-2941
> URL: https://issues.apache.org/jira/browse/FOP-2941
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: trunk
>
> Attachments: Watermark.svg, simple.fo
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Resolved] (FOP-2941) SVG container with stroke=black has an unexpected border

2020-05-27 Thread Simon Steiner (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner resolved FOP-2941.

Resolution: Fixed

http://svn.apache.org/viewvc?view=revision=1878158

> SVG container with stroke=black has an unexpected border
> 
>
> Key: FOP-2941
> URL: https://issues.apache.org/jira/browse/FOP-2941
> Project: FOP
>  Issue Type: Bug
>Reporter: Simon Steiner
>Assignee: Simon Steiner
>Priority: Major
> Fix For: trunk
>
> Attachments: Watermark.svg, simple.fo
>
>
> fop simple.fo -ps out.ps
> Output should match PDF output



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (FOP-2941) SVG container with stroke=black has an unexpected border

2020-05-27 Thread Simon Steiner (Jira)
Simon Steiner created FOP-2941:
--

 Summary: SVG container with stroke=black has an unexpected border
 Key: FOP-2941
 URL: https://issues.apache.org/jira/browse/FOP-2941
 Project: FOP
  Issue Type: Bug
Reporter: Simon Steiner
Assignee: Simon Steiner






--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FOP-2889) Missing maven artifacts: jai-core and jai-codec

2020-05-27 Thread Simon Steiner (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17117783#comment-17117783
 ] 

Simon Steiner commented on FOP-2889:


http://svn.apache.org/viewvc?view=revision=1878161

> Missing maven artifacts: jai-core and jai-codec
> ---
>
> Key: FOP-2889
> URL: https://issues.apache.org/jira/browse/FOP-2889
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.4
>Reporter: Jörg Weske
>Assignee: Simon Steiner
>Priority: Major
> Fix For: trunk
>
>
> +*Problem:*+ When trying to include FOP 2.4 in a Java Maven project, the 
> following artifacts cannot be found through maven-central:
> {noformat}
> 
>   javax.media
>   jai-core
>   1.1.3
> 
> 
>   com.sun.media
>   jai-codec
>   1.1.3
> {noformat}
> As a result, building the project is impossible.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (FOP-2889) Missing maven artifacts: jai-core and jai-codec

2020-05-27 Thread Simon Steiner (Jira)


 [ 
https://issues.apache.org/jira/browse/FOP-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner updated FOP-2889:
---
Fix Version/s: (was: 2.5)
   trunk

> Missing maven artifacts: jai-core and jai-codec
> ---
>
> Key: FOP-2889
> URL: https://issues.apache.org/jira/browse/FOP-2889
> Project: FOP
>  Issue Type: Bug
>Affects Versions: 2.4
>Reporter: Jörg Weske
>Assignee: Simon Steiner
>Priority: Major
> Fix For: trunk
>
>
> +*Problem:*+ When trying to include FOP 2.4 in a Java Maven project, the 
> following artifacts cannot be found through maven-central:
> {noformat}
> 
>   javax.media
>   jai-core
>   1.1.3
> 
> 
>   com.sun.media
>   jai-codec
>   1.1.3
> {noformat}
> As a result, building the project is impossible.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FOP-2146) Wrong FontCache-Directory used for not existing userHome in FontCache.getDefaultCacheFile() (Bug 47786 was not fixed correctly)

2020-05-27 Thread Simon Steiner (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-2146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17117576#comment-17117576
 ] 

Simon Steiner commented on FOP-2146:


I think you use EnvironmentalProfileFactory.createRestrictedIO to disable font 
caching
{code:java}
String fopxconf = "";
ResourceResolver cloudResourceResolver = 
ResourceResolverFactory.createDefaultResourceResolver();
FopFactoryBuilder confBuilder = new FopConfParser(new 
ByteArrayInputStream(fopxconf.getBytes()),
EnvironmentalProfileFactory.createRestrictedIO(new 
File(".").toURI(), cloudResourceResolver)).getFopFactoryBuilder();
FopFactory fopFactory = confBuilder.build();
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
FileOutputStream fos = new FileOutputStream("out.png");
Fop fop = fopFactory.newFop("image/png", foUserAgent, fos);
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
Source src = new StreamSource(new ByteArrayInputStream(fo.getBytes()));
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(src, res);
fos.close();

{code}

> Wrong FontCache-Directory used for not existing userHome in 
> FontCache.getDefaultCacheFile() (Bug 47786 was not fixed correctly)
> ---
>
> Key: FOP-2146
> URL: https://issues.apache.org/jira/browse/FOP-2146
> Project: FOP
>  Issue Type: Bug
>  Components: font/unqualified
>Affects Versions: 1.1
> Environment: Operating System: All
> Platform: All
>Reporter: mg
>
> Method getDefaultCacheFile() returns an invalid file name if the user has no 
> home directory set. In that case the name of the fop user directory 
> (FOP_USER_DIR!) is returned and not the name of the cache file 
> (DEFAULT_CACHE_FILENAME).
> Wrong Code:
> public static File getDefaultCacheFile(boolean forWriting) {
> File userHome = getUserHome();
> if (userHome != null) {
> File fopUserDir = new File(userHome, FOP_USER_DIR);
> if (forWriting) {
> boolean writable = fopUserDir.canWrite();
> if (!fopUserDir.exists()) {
> writable = fopUserDir.mkdir();
> }
> if (!writable) {
> userHome = getTempDirectory();
> fopUserDir = new File(userHome, FOP_USER_DIR);
> fopUserDir.mkdir();
> }
> }
> return new File(fopUserDir, DEFAULT_CACHE_FILENAME);
> }
> return new File(FOP_USER_DIR);
> }
> If getUserHome() does not return a directory the default name must be 
> returned (and not the name of the directory):
> return new File(DEFAULT_CACHE_FILENAME);



--
This message was sent by Atlassian Jira
(v8.3.4#803005)